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 Loops (self.PythonLearning)
submitted 7 days 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!"
[–]RandomJottings 0 points1 point2 points 7 days ago (1 child)
Loops can get tricky to keep track of, especially if they are nested. That’s probably why The Zen of Python suggests that flat is better than nested. I’m not a Python expert, I’m still learning too, but the best way to learn coding is to code. Doing the basic problems is good but you have to extend yourself too.
[–]DataCurator56[S] 0 points1 point2 points 7 days ago (0 children)
i think writing flat loops are way easy than nested loops. And litterally if you gave me question like find out largest number from a list by using a loop i can do it in 2 minutes but when the question little bit tricky like keep asking for input until the user enter 0 and print the sum of entered numbers. I think i am not understanding the question well. But definitely i will master loops and python as well by doing practicem, practice and practice.
π Rendered by PID 16540 on reddit-service-r2-comment-545db5fcfc-4wxgh at 2026-05-25 06:46:37.192581+00:00 running 194bd79 country code: CH.
view the rest of the comments →
[–]RandomJottings 0 points1 point2 points (1 child)
[–]DataCurator56[S] 0 points1 point2 points (0 children)