r/PythonLearning • • Sep 19 '25

Day 4

96 Upvotes

26 comments sorted by

View all comments

3

u/[deleted] Sep 19 '25

[removed] — view removed comment

2

u/fatimalizade Sep 19 '25

Thanks for the info!

1

u/FoolsSeldom Sep 19 '25

I think "always" is a bit strong. Input validation is important, but try / accept is not the only option.

For example, the str.isdecimal method is good for checking for a valid integer string.