Oct-20-2017, 09:07 AM
i have an exercise to do which asks the user to give 2 numbers x and y. OK i got that. then it needs to print the exponential value of e x, where e is the base of the natural logarithm.
up to now i have:
x=int(input('Please state the value of X: '))
y=int(input('Please state the value of Y: '))
print(math.log(x[,base]))
apparently it returns an error for invalid syntax of the comma separator prior to the word base.
is the coding correct or am i missing something?