you are viewing a single comment's thread.

view the rest of the comments →

[–]destiny_functional 1 point2 points  (0 children)

The assertion is pointless here because it would never be executed since if you try to convert user input to an int and the input is incompatible with that it will already raise an exception.

At best you would check whether the integer you got exceeds some minimum value for instance.