Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- #%%
- import random
- a = random.randint(1, 6)
- guess = 0
- while a != guess:
- guess = input("What's your guess?")
- if guess == "exit":
- print ("If your quitting something this easy, you'll have a nice time at mc donald's")
- break
- guess = int(guess)
- if a > guess:
- print ("Too little, try again")
- if a < guess:
- print ("Too high, get your head out of the clouds, retry")
- if a == guess:
- print("Good Job! You Guessed Right!")
Add Comment
Please, Sign In to add comment