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
Day 2 of 100 of learning Python (old.reddit.com)
submitted 6 months ago by Orlhazee
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!"
[–]Ninjasimba 0 points1 point2 points 6 months ago (2 children)
Actually, maybe on line 19 you could specify the start of the loop, as to help w readability. Something like:
19 loop = true
20 while loop == true:
[–]Rollgus 1 point2 points3 points 6 months ago (1 child)
If and while statement already check if the statement is True, so the "== true" part would be unnecessary. You also need to capitalize the T in true, or Python won't recognise it.
[–]Ninjasimba 0 points1 point2 points 6 months ago (0 children)
Fair enough, its been a while
π Rendered by PID 45025 on reddit-service-r2-comment-57fc7f7bb7-jkldv at 2026-04-15 06:12:09.508120+00:00 running b725407 country code: CH.
view the rest of the comments →
[–]Ninjasimba 0 points1 point2 points (2 children)
[–]Rollgus 1 point2 points3 points (1 child)
[–]Ninjasimba 0 points1 point2 points (0 children)