MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/hdcm66/aigenerated_python_code/fvm183w/?context=3
r/shittyprogramming • u/minimaxir • Jun 21 '20
26 comments sorted by
View all comments
Show parent comment
4
Yeah, this will return True if all values convert to non-zero integers. You'd have to catch the ValueError somewhere to check if something is an integer.
View all comments
Show parent comment
4
u/ollien Jun 22 '20
Yeah, this will return True if all values convert to non-zero integers. You'd have to catch the ValueError somewhere to check if something is an integer.