import math output = math.log(8, 2) # second parameter is base of logarithm print("Output:", output) # Output: 3.0