main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import turtle
turtle.color("#ff8888")
turtle.goto(0,100)
turtle.goto(100,100)
turtle.goto(100,0)
turtle.goto(0,0)

turtle.color("#88aaff")
turtle.fillcolor("#88aaff44")
turtle.begin_fill()
counter = 0
while counter < 3:
    turtle.forward(120)
    # exteriorAngle = 360 / sides
    turtle.left(360.0/3)
    counter = counter + 1
turtle.end_fill()
result
console