Answers for "finding log base 2 in python"

0

finding log base 2 in python

# Python code to demonstrate the working of
# log(a,Base)
  
import math
  
# Printing the log base e of 14
print ("Natural logarithm of 14 is : ", end="")
print (math.log(14))
  
# Printing the log base 5 of 14
print ("Logarithm base 5 of 14 is : ", end="")
print (math.log(14,5))
Posted by: Guest on June-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language