import math
var = input("Give some numbers!")
print(math.sinh(var))
It doesn't give me an answer if I put something in? Can someone help me?
import math
var = input("Give some numbers!")
print(math.sinh(var))
It doesn't give me an answer if I put something in? Can someone help me?
You need to convert the input into a float
after it is received.
In python, by default, inputs are recieved as strings. math.sinh
will only take numerical inputs (int
and float
types), therefore you need to convert the input to a float
before storing it in var
.
Try:
import math
var = float(input("Give some numbers!"))
print(math.sinh(var))
I think your inputing value type is NAN.
so i suggest that
var=int(input("Give some numbers!"))