MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1nl3crg/day_4/nf2ifsa/?context=3
r/PythonLearning • u/fatimalizade • Sep 19 '25
26 comments sorted by
View all comments
3
[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.
2
Thanks for the info!
1
I think "always" is a bit strong. Input validation is important, but try / accept is not the only option.
try
accept
For example, the str.isdecimal method is good for checking for a valid integer string.
str.isdecimal
3
u/[deleted] Sep 19 '25
[removed] — view removed comment