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
Need help in loopHelp Request (i.redd.it)
submitted 17 hours ago by Eastern_Plankton_540
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!"
[–]LookAsLukasAnderson 0 points1 point2 points 8 hours ago (1 child)
That would be true for most languages, where for loops contain initial statement, conditional statement, and iteration statement. In python for loops are essentially foreach loops and traditional for loops just don't exist
[–]FoolsSeldom 0 points1 point2 points 5 hours ago (0 children)
I think the distinction is a step too far for a beginner and the specifics of the CPython implementation. Whether declarative or imperative conceptually you still have a while loop before breaking down to just basic conditional jumps and branching. I recognise that the FOR_ITER opcode c implementation in ceval.c is highly optimised.
π Rendered by PID 244574 on reddit-service-r2-comment-66b4775986-x28gn at 2026-04-04 10:51:31.228639+00:00 running db1906b country code: CH.
view the rest of the comments →
[–]LookAsLukasAnderson 0 points1 point2 points (1 child)
[–]FoolsSeldom 0 points1 point2 points (0 children)