Created
July 28, 2022 21:42
-
-
Save daniel-schroeder-dev/06a4320ca622b040494d796d88c175a9 to your computer and use it in GitHub Desktop.
Danial - Guess The Number
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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