Escalier en direction cours
from kandinsky import * x = int(input("X départ ?")) y = int(input("Y départ ?")) LongueurM = int(input("Longueur marche ?")) LargeurM = int(input("Largeur marche ?")) nbMarches = \ min((320-x)//LongueurM, \ (220-y)//LargeurM) for i in range(nbMarches): fill_rect(x, \ y +LargeurM*i, \ LongueurM*i, \ LargeurM, \ color(0,0,0))