Guest User

Untitled

a guest
Jan 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. #%%
  3. import random
  4. a = random.randint(1, 6)
  5. guess = 0
  6.  
  7. while a != guess:
  8. guess = input("What's your guess?")
  9.  
  10. if guess == "exit":
  11. print ("If your quitting something this easy, you'll have a nice time at mc donald's")
  12. break
  13.  
  14. guess = int(guess)
  15. if a > guess:
  16. print ("Too little, try again")
  17. if a < guess:
  18. print ("Too high, get your head out of the clouds, retry")
  19.  
  20. if a == guess:
  21. print("Good Job! You Guessed Right!")
Add Comment
Please, Sign In to add comment