25개 이상의 토픽을 선택하실 수 없습니다. 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.
 
 
 
 
 
 

28 lines
430 B

  1. largeur = 9
  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()