Categories
How to get data from user float?
We need to receive data from the user by type: amount:int , but only a floating point number. Example: 1.2, 1.20, 1.25 etc.
Answer the question
In order to leave comments, you need to log in
x = input() x = float(x)
amount:int
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question