Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Version 2: http://pastebin.com/Mmg8WG1L
- print("Welcome!")
- g = input("Guess the number: ")
- guess = int(g)
- if guess == 5:
- print("You win!")
- else:
- if guess > 5:
- print("Too high.")
- else:
- print("Too low.")
- print("Game over!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement