import turtle def draw(t, length, n): if n == 0: return angle = 50 t.forward(length * n) t.left(angle) draw(t, length, n-1) t.right(2 * angle) draw(t, length, n-1) t.left(angle) t.backward(length * n) stromozrava_korytnacka = turtle.Turtle() stromozrava_korytnacka.speed(1) n = 5 l = 50 / n draw(stromozrava_korytnacka, l, n) input() # pocka na to az stacite Enter (nezavrie okno)