Answer: Turtle Challenge #188

Here’s what the code from Turtle Challenge #188 draws. This picture was made by running the code for real.

The drawing made by turtle challenge 188.
What the turtle drew.

The answers

How many circles will the turtle draw? 20 circles, one each time round the loop.

Why does the turtle turn 18 degrees after each circle? Because 20 × 18 = 360, so the circles spread evenly all the way round, like petals on a flower.

What colour is the flower? All mediumpurple.

How the code works

t.circle(80) draws a whole circle and brings the turtle back to the same spot. Turning a little between circles makes a flower pattern.

import turtle

t = turtle.Turtle()
t.speed(0)
t.pensize(2)
t.pencolor("mediumpurple")

for petal in range(20):
    t.circle(80)
    t.left(18)

t.hideturtle()
turtle.done()

Try it: What happens if you use t.circle(80, 180) instead? (That draws half a circle.)