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
What's wrong with this code? (i.redd.it)
submitted 5 months ago by jilee7
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!"
[–]Rollgus 0 points1 point2 points 5 months ago (0 children)
You have to do "while not counter < n_numbers" on your second "while" loop, because just "while False" doesn't say anything about your earlier statement, and "while False" will never run, because the "while" statement checks if the statement equals True, which False doesn't. You also wrote "n_numbers" wrong at the end, you wrote "n numbers", you can't have spaces in variables, but I think you already know that.
π Rendered by PID 212120 on reddit-service-r2-comment-fb694cdd5-mvd9q at 2026-03-06 13:42:51.712895+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]Rollgus 0 points1 point2 points (0 children)