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.
 
 
 
 
 
 

11 lines
241 B

  1. # Exercice: ne pas utiliser la double négation
  2. def faire_le_café(sans_sucre):
  3. if not sans_sucre:
  4. print("avec du sucre")
  5. else:
  6. print("sans sucre")
  7. faire_le_café(sans_sucre=True)
  8. faire_le_café(sans_sucre=False)