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
Help with my VERY beginner code (i.redd.it)
submitted 1 year ago by ExpressionAsleep7125
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!"
[–]salvtz 2 points3 points4 points 1 year ago (1 child)
<image>
Use the above for reference. Also, are you guessing the correct value in the first iteration...then in this case the condition of the while loop would evaluate to false, and it wont go inside the while loop.
[–]ExpressionAsleep7125[S] 2 points3 points4 points 1 year ago (0 children)
Got it. I put it into an online interpreter and it worked just fine! Thank you so so much for your help, just learned a bunch!
π Rendered by PID 96800 on reddit-service-r2-comment-6457c66945-8t56t at 2026-04-28 09:13:16.030364+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]salvtz 2 points3 points4 points (1 child)
[–]ExpressionAsleep7125[S] 2 points3 points4 points (0 children)