Activity: Repeat

STEP 12: We can make this into a dance move by repeating the action.

  • Go to . Drop in another Wait command below .flip_right_left().
  • Go to . Drop in another Flip Right Left command below .wait().
  • Keep adding these two commands until the sprite does the move six times.
  • Change the argument in each .wait() command to 0.75.

stage.set_background("concert") sprite = codesters.Sprite("person1") sprite.set_speed(3) sprite.move_down(100) sprite.flip_up_down() sprite.move_right(150) sprite.move_left(200) sprite.flip_up_down() sprite.turn_left(360) stage.wait(0.75) sprite.flip_right_left()