Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jan 13th, 2018 48 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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!")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top