Visiter ma chaine Youtube Maths-info
from kandinsky import fill_rect from turtle import * from random import randint,choice def lutins(n): if n == -1: return else: setheading(90) pensize(2 * n + 1) color(choice([(255,255,255),(255,0,0),(0,255,0)])) for i in range(5): forward(3*n) penup() x,y = position() a = heading() forward(16*n) pendown() lutins(n-1) penup() goto(x,y) setheading(a) backward(3*n) pendown() right(72) return fill_rect(0,0,320,222,(0,0,0)) lutins(4) hideturtle()