import math
output = math.log(8, 2) # second parameter is base of logarithm
print("Output:", output) # Output: 3.0
# Natural log in python and log base 10
import numpy as np
#natural log in python
x = np.log(8)
#log base 10 in python
x2 = np.log10(8)
math.log10(num)