import turtle
turtle.setup(650, 350, 200, 200)
turtle.penup()
turtle.fd(-250)
turtle.pendown()
turtle.pensize(25)
colors = ["red", "blue", "green", "yellow", "purple"]
turtle.pencolor(colors[0])
turtle.seth(-40)
turtle.shape("circle") # Change the shape to a circle
turtle.shapesize(0.5)
for i in range(4):
turtle.circle(40, 80)
turtle.pencolor(colors[i % len(colors)]) # Change color after each loop
turtle.circle(-40, 80)
turtle.pencolor(colors[(i+1) % len(colors)]) # Change color after each loop
turtle.circle(40, 80/2)
turtle.fd(40)
turtle.pencolor(colors[-1]) # Change color to the last color in the list
turtle.circle(16, 180)
turtle.fd(40*2/3)
turtle.done()