from turtle import Turtle length 10 count while forward length left 90

1
2
3
4
5
6
7
8
9
from turtle import *
a = Turtle()
length = 10
count = 0
while 1:
a.forward(length)
a.left(90)
length += 10
a.screen.mainloop()