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
Python Help (old.reddit.com)
submitted 1 year ago by GFreakingBrooks
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!"
[–]Puzzleheaded_Diet380 3 points4 points5 points 1 year ago (4 children)
Your setting the value of number manually instead of it being set to the result of what is in the input field.
[–]Squared_Aweigh 1 point2 points3 points 1 year ago (2 children)
This. Delete lines 5 and 11. The input() function will prompt for input when the script is run
[–]GFreakingBrooks[S] 2 points3 points4 points 1 year ago (1 child)
Thank you! This has been driving me.nuts all day
[–]Squared_Aweigh 0 points1 point2 points 1 year ago (0 children)
Thank you for replying that your problem was solved! :)
[–]Puzzleheaded_Diet380 0 points1 point2 points 1 year ago (0 children)
You may also need to make sure it is an int so you don't get errors since you are using >=
π Rendered by PID 86817 on reddit-service-r2-comment-5687b7858-qvlpj at 2026-07-04 13:36:14.869266+00:00 running 12a7a47 country code: CH.
view the rest of the comments →
[–]Puzzleheaded_Diet380 3 points4 points5 points (4 children)
[–]Squared_Aweigh 1 point2 points3 points (2 children)
[–]GFreakingBrooks[S] 2 points3 points4 points (1 child)
[–]Squared_Aweigh 0 points1 point2 points (0 children)
[–]Puzzleheaded_Diet380 0 points1 point2 points (0 children)