Oct-21-2017, 09:43 AM
i have a homework and i am asking the user to input two numbers x and y:
from math import *
x=int(input('Please state a number for X: '))
y=int(input('Please state a number for Y: '))
then i need to calculate the log of x to the base of y.
here i have:
print(math.log(x,y))
but it returns errors " print(math.log(x,y))
NameError: name 'math' is not defined"
any ideas please?