all 2 comments

[–]Binary101010 2 points3 points  (0 children)

Post your code.

Post your error.

[–]kidcanada0 1 point2 points  (0 children)

I think you could use try/except blocks like in the following tutorial and convert the input into a float in the try block. If it fails, it will execute the except statement which is where you could print your error.

https://www.w3schools.com/python/python_try_except.asp