Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import randint
- secret = randint(1,10)
- print("Bem vindo")
- guess = 0
- while guess != secret:
- g = input("Digite o numero: ")
- guess = int(g)
- if guess == secret:
- print("Vc venceu")
- else:
- if guess > 5:
- print("Numero eh menor: ")
- else:
- print("Numero eh maior. ")
- print("game over")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement