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.
 
 
 
 
 
 

18 rivejä
354 B

  1. import random
  2. secret = random.randint(0, 100)
  3. print("Devine le nombre auquel je pense")
  4. while True:
  5. response = input()
  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")