Advertisement
rony2605

Gerando numeros aleatorios

Mar 14th, 2013
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. print("Bem vindo")
  2. from random import randint
  3. secret = randint(1, 5)
  4.  
  5. g = input("Digite o numero: ")
  6. guess = int(g)
  7.  
  8. if secret == 3:
  9.     print("Vc venceu")
  10. else:
  11.     if guess > 3:
  12.         print("Numero eh menor: ")
  13.     else:
  14.         print("Numero eh maior. ")
  15.        
  16. print("game over")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement