From ccf5325e459dde7b13ac53eaef0441b3c05ad3cb Mon Sep 17 00:00:00 2001 From: Maxime Tertrais Date: Wed, 18 Sep 2024 14:49:28 +0200 Subject: [PATCH] escalier tortue --- Projet#2 Tortue/main.tortue.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Projet#2 Tortue/main.tortue.py b/Projet#2 Tortue/main.tortue.py index eea6e1e..34c4575 100644 --- a/Projet#2 Tortue/main.tortue.py +++ b/Projet#2 Tortue/main.tortue.py @@ -2,4 +2,14 @@ import turtle t=turtle.Turtle() +def escalier(taille,nb): + for i in range (0,nb): + t.forward(taille) + t.left (90) + t.forward(taille) + t.right (90) + t.forward(taille) + +escalier (30,5) + turtle.done() \ No newline at end of file