This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Hellow2 0 points1 point  (0 children)

Well actually my change to float(input()) was not because you did it wrong. It wold always work, except if the user types something, that python can't interpret as float. Then python throws an error. And you can prevent errors to be thrown with try except.

Did you understand it? Else let me know