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.
 
 
 
 
 
 

27 lines
553 B

  1. # Exercice: découper la fonction servir_le_thé() en trois
  2. from cuisine import *
  3. def servir_le_thé():
  4. # Faire bouillir l'eau
  5. allumer_bouilloire()
  6. attendre_que_ca_bout()
  7. eteindre_bouilloire()
  8. # Remplir une tasse
  9. ouvrir_placard()
  10. prendre_une_tasse()
  11. mettre_eau_dans_tasse()
  12. mettre_thé_dans_tasse()
  13. attendre_que_ca_infuse()
  14. fermer_placard()
  15. # Servir sur un plateau
  16. prendre_un_plateau()
  17. mettre_tasse_sur_plateau()
  18. mettre_sucrière_sur_plateau()
  19. apporter_le_plateau()
  20. servir_le_thé()