TypeError: can’t multiply sequence by non-int of type ‘str’

You should convert the data you get from console to integers:

x = int(x)
y = int(y)
Distance = float(decimal((2*(x*x))((decimal(math.zsin(y)))*(decimal(math.acos(y)))))/2)

Leave a Comment