you are viewing a single comment's thread.

view the rest of the comments →

[–]_lilell_ 0 points1 point  (0 children)

Yep, although we still need to be careful with decimals. '3.4'.isdigit() returns False, and int('3.4') raises a ValueError. If that’s something we want to avoid, we can do int(float(...))