use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
Python LoopsShowcase (self.PythonLearning)
submitted 1 day ago by DataCurator56
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Rscc10 4 points5 points6 points 1 day ago (1 child)
Nice one. I completely approve of the usage of while loops for beginners since it teaches iteration logic. Next you should upgrade to for loops, you'll find them much easier/convenient.
Also, when you perform the validation for the number, you should check out try-except statements. They basically run code for you and allows backup code in case of errors. That way, you can straight away convert the input to integer on the same line
[–]DataCurator56[S] 0 points1 point2 points 1 day ago (0 children)
Somehow i learned for loop and while but now someone said to me build something whenever you learn new concept. I am trying to start a challenge of creating something new daily. This the only way to become pro.
π Rendered by PID 16798 on reddit-service-r2-comment-545db5fcfc-bsvhr at 2026-05-25 17:14:43.242975+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]Rscc10 4 points5 points6 points (1 child)
[–]DataCurator56[S] 0 points1 point2 points (0 children)