Код:
from turtle import *
def triangle(x):
left(30)
begin_fill()
for i in range(3):
forward(x)
right(120)
end_fill()
right(30)
forward(x // 3)
while x <= 130:
return triangle(x + 30)
speed(5)
color('green')
right(90)
triangle(40)
Виконати цей код на Repl.It: https://repl.it/@ttolich/tree