Activity: Spiral Example
I'M FINISHED WITH HOUR OF CODE!
img

Our turtle has finally escaped the maze and is safely back at his pond! Let's help him draw a spiral in the water to celebrate!

  • Click Run and watch the turtle draw a spiral.
  • Try changing the angle the turtle turns or the number of pixels it moves forward.
  • When you're finished, click Submit and Next to continue.

sprite = codesters.Sprite("turtle1") sprite.go_to(-75, -75) sprite.set_size(.5) stage.set_background("pond") sprite.pen_down() sprite.set_color("yellow") for counter in range(25): sprite.move_forward(150) sprite.turn_left(92)
Support