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.

123456789101112131415161718192021222324252627
  1. largeur = 10
  2. def affiche_ligne(début, fin):
  3. blancs_au_début = " " * début
  4. largeur_ligne = fin - début
  5. dièses = "#" * largeur_ligne
  6. print(blancs_au_début + dièses)
  7. def affiche_feuilles():
  8. affiche_ligne(5, 6)
  9. affiche_ligne(4, 7)
  10. # à compléter
  11. def affiche_pied():
  12. affiche_ligne(5, 6)
  13. # à compléter
  14. def affiche_sapin():
  15. affiche_feuilles()
  16. affiche_pied()
  17. affiche_sapin()