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