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.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.

devine-nombre.py 371 B

1234567891011121314151617
  1. import random
  2. secret = random.randint(0, 100)
  3. print("Devine le nombre auquel je pense")
  4. while True:
  5. response = input("votre reponse: ")
  6. response = int(response)
  7. if response == secret:
  8. print("Gagné")
  9. break
  10. else:
  11. if response > secret:
  12. print("Trop grand")
  13. if response < secret:
  14. print("Trop petit")