main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import turtle
turtle.speed(0)
t= turtle
t.color("#0000ff")
turtle.penup()
turtle.goto(-200, -200)
turtle.pendown()
turtle.color("#ff8888")
turtle.fillcolor("#ff888804")
turtle.begin_fill()
counter = 0
while counter < 3:
    turtle.forward(180)
    turtle.left(120)
    counter += 1 # counter = counter + 1
turtle.end_fill()


turtle.penup()
turtle.goto(0,110)
turtle.pendown()

sides = 3;
while sides < 1000:
    turtle.begin_fill()
    counter = 0
    while counter < sides:
        turtle.forward(10)
        turtle.left(360.0/sides)
        counter += 1 # counter = counter + 1
    turtle.end_fill()
    sides += 1
result
console