0

How can I save user input in Python as int/float?

Iā€™m trying to save user input as float but I canā€™t. Iā€™m getting an error. Can someone help me please? Thanks float(x=input()) x+=x print(x)

4th Mar 2019, 1:15 PM
Michele Ruzic
1 Answer
+ 2
x = float(input()) x+=x print(x)
4th Mar 2019, 2:13 PM
Nathan Lewis
Nathan Lewis - avatar