3 ms·
You should always catch ValueError when using int() on user input, because that input may not be a valid number.
by progval 4y ago
You should always catch ValueError when using int() on user input, because that input may not be a valid number.
- deleted 4y ago[deleted]
- mattnewton 4y agoI should also check to see if the length is reasonable, no? But the whole point of the issue is that nobody finds that practical.