Y
Hacker News
new
|
ask
|
show
|
jobs
by
progval
1381 days ago
You should always catch ValueError when using int() on user input, because that input may not be a valid number.
1 comments
mattnewton
1381 days ago
I should also check to see if the length is reasonable, no? But the whole point of the issue is that nobody finds that practical.
link