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.
 
 
 
 
 
 

16 lines
303 B

  1. import random
  2. nombre = random.randint(0, 100)
  3. print("devine le nombre auquel je pense")
  4. while True:
  5. nombre_devine = int(input())
  6. if nombre_devine > nombre:
  7. print("trop grand")
  8. elif nombre_devine < nombre:
  9. print("trop petit")
  10. else:
  11. print("bravo")
  12. break