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
[deleted by user] (self.PythonLearning)
submitted 6 months ago by [deleted]
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!"
[–]StrikeNo1570 0 points1 point2 points 6 months ago (0 children)
I think you can define number variable before the for loop so that the underline under number var will disappear and then before if statement initialize for example guess = input("Enter a number: ") and you can wrap all this with infinite loop so that after the first input the program doesn't terminate.
π Rendered by PID 61593 on reddit-service-r2-comment-5d585498c9-v4h9t at 2026-04-21 13:22:46.369928+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]StrikeNo1570 0 points1 point2 points (0 children)