Guest User

Untitled

a guest
Jun 22nd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import random
  2.  
  3. nbr_cache = random.randint(1,100)
  4. nbr_entre = -1
  5.  
  6. while nbr_entre != nbr_cache:
  7. nbr_entre = int(input("Entrez un nombre : "))
  8. if nbr_cache > nbr_entre:
  9. print ("C'est plus grand !")
  10. elif nbr_cache < nbr_entre:
  11. print ("C'est plus petit !")
  12. else:
  13. print ("Gagné !")
Add Comment
Please, Sign In to add comment