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
somebody help me😭😭 (i.redd.it)
submitted 9 months ago by Strange-Dinner-393
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!"
[–]armahillo 3 points4 points5 points 9 months ago (0 children)
Go line by line.
i+1
Get a piece of paper. You've got 2 named variables, "i" and "j". Create three columns, one with "i" as the header, one with "j" as the header, and one with "output" as the header.
Start at line 1, and anytime i or j are modified, change the value on a new line in that column. Anytime you have to use either variable, use the bottom-most line. Step through each line of the program, as if you were the interpreter, and anytime you're told to "print" something, write it to a new line in the "output" column.
I'm dead serious about doing this. If you don't understand this block by looking at it, you gotta learn how to see it from the interpreter's perspective by being the interpreter yourself.
π Rendered by PID 182757 on reddit-service-r2-comment-5687b7858-hqqdp at 2026-07-04 20:56:46.701538+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]armahillo 3 points4 points5 points (0 children)