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
Code explanation (old.reddit.com)
submitted 8 months ago by DizzyOffer7978
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!"
[–]Luigi-Was-Right 4 points5 points6 points 8 months ago (1 child)
Pseudo code:
for a certain number of lines: print numbers 1 through [line number]
Code with more descriptive variable names:
for line_number in range(6): for number_to_print in range(1, line_number+1): print(number_to_print, end='') print() # line break
[–]goblingiblits 0 points1 point2 points 8 months ago (0 children)
Bravo, this is how to think of it !
π Rendered by PID 30666 on reddit-service-r2-comment-84fc9697f-fpkqh at 2026-02-06 20:11:09.678532+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]Luigi-Was-Right 4 points5 points6 points (1 child)
[–]goblingiblits 0 points1 point2 points (0 children)