sprite = codesters.Sprite("hedgehog") sprite.set_speed(10) sprite.set_size(.5) sprite.pen_down() sprite.set_color("purple") def spiral(size, angle): for counter in range(100): sprite.move_forward(size) # 3) change this from turtle.left to turtle.right to # make the turtle draw the other way sprite.turn_left(angle) # 4) change this number to 1 to make the turtle # draw a really tight spiral size += 2 spiral(size, angle) # break # 5) change these numbers to make the turtle draw a totally # different spiral. Try one of these: # 0, 63 to draw a rose # 50, 101 to draw a crazy spiral star # 25, 70 to draw a spiral that looks 3D spiral(25, 70)
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)