Skip to content

Instantly share code, notes, and snippets.

@daniel-schroeder-dev
Created July 28, 2022 21:42
Show Gist options
  • Save daniel-schroeder-dev/06a4320ca622b040494d796d88c175a9 to your computer and use it in GitHub Desktop.
Save daniel-schroeder-dev/06a4320ca622b040494d796d88c175a9 to your computer and use it in GitHub Desktop.
Danial - Guess The Number
from random import randint
welcome_banner = """
Welcome to guess the number!!! The rules are simple all you have to do is
guess the correct nuumber and then you will win a prize!!!
"""
print(welcome_banner)
max_num = 10
random_number = randint(1, max_num)
offset = ___
lower_bound = ___
upper_bound = ___
guess_number = input("What is your guess?: ")
if guess_number == random_number:
print("Thats correct you win 100$")
elif guess_number >= ___ ___ guess_number <= ___:
# Display: "That's close, you win $50"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment