Advertisement
mejpark

Python guessing game (v1)

Oct 22nd, 2013
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. # Version 1: http://pastebin.com/66EiM6ct
  2.  
  3. print("Welcome!")
  4.  
  5. g = input("Guess the number: ");
  6.  
  7. guess = int(g)
  8.  
  9. if guess == 5:
  10.  
  11.     print("You win!")
  12.  
  13. else:
  14.  
  15.     print("You lose!")
  16.  
  17. print("Game over!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement