Tring math module

I am new to the python program, i wrote code using math modules
Getting user input and perform below module

n= int(input ("Entet a number"))
n=  math.log2(2)
n =  cos(1)
n = float(math.e(0.5))

print(f"n is {n}")

while i am running this i get type error, float object not callable
I couldn’t understand.

Thank you for your clear explanation.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.