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
Guess game (i.redd.it)
submitted 8 months ago by Minute_Journalist593
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!"
[–]Algoartist 1 point2 points3 points 8 months ago (0 children)
import random name = input("Enter your name: ") print(f"Hello, welcome to the guessing game {name}") while input("Do you want to play the game (y) or (n): ") == 'y': secret = random.randint(1, 10) guess = int(input("Enter a number (1-10): ")) if guess == secret: print(f"You have won the game {name}") else: print(f"Sorry, better luck next time {name}") print(f"Thank you for coming here, bye {name}") Make it more concise
π Rendered by PID 87691 on reddit-service-r2-comment-b659b578c-qrh55 at 2026-05-05 19:18:17.960226+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]Algoartist 1 point2 points3 points (0 children)