Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- def get_random_int():
- return random.randint(1,101)
- if __name__ == "__main__":
- num_to_guess = get_random_int()
- while True:
- input = input("Reading input: ")
- input = int(input)
- if(input == num_to_guess):
- print("Output: YAY")
- break
- elif input > num_to_guess:
- print("Output: LOWWWWER")
- else:
- print("Output: HIGHERRR")
- print("Output: GAME OVER")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement