You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

15 lines
330 B

  1. import random
  2. nombre_secret = random.randint(0, 100)
  3. print("devine le nombre auquel je pense entre 0 et 100")
  4. entrée_utilisateur = int(input())
  5. while True:
  6. if entrée_utilisateur == nombre_secret:
  7. print("bravo")
  8. break
  9. else:
  10. print("mauvaise réponse")
  11. entrée_utilisateur = int(input())