Day 16 - Turtle Spirograph with Nested Loops

Today, we'll play around with the turtle, making some fun repeating designs using mathematical principles.

Finished Code

from turtle import *

speed(0)

for x in range(0,18):
    color("blue")
    circle(50,180)
    for y in range(0,10):
        color("red")
        pensize(y+1)
        forward((y+1)*4)
        left(36)
    color("blue")
    circle(50,180)
    rt(20)


done()