Let's add the loop that will draw the spiral! Click on the PYTHON tab in the toolkit to find the Loops section.

  • Go to and drag out Loop with Range.
  • Go to and drag out Move Forward. Drop it INSIDE the for loop.

To put a line of code inside a loop, it must be indented four spaces.

You'll see a purple block ····¬ next to any code that is correctly indented.

stage.set_background("pond") sprite = codesters.Sprite("turtle1") sprite.set_size(.5) sprite.pen_down() sprite.set_color("yellow")