Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created November 30, 2013 05:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelcaraciolo/7715647 to your computer and use it in GitHub Desktop.
Save marcelcaraciolo/7715647 to your computer and use it in GitHub Desktop.
from random import randint
print ('Bem vindo!')
sorteado = randint(1, 100)
chute = 0
while chute != sorteado:
chute = int(input ('Chute: '))
if chute == sorteado:
print ('Você venceu!')
else:
if chute > sorteado:
print ('Alto')
else:
print ('Baixo')
print ('Fim do jogo!')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment