STEP 9: Let’s use code to have our sprite do a flip!

  • Go to and drag out Turn Left. Drop it at the bottom of your program.
  • Change the integer argument in the .turn_left() command to 360.

The .turn_left() command turns the sprite a certain number of degrees. Remember, the number of degrees in a full circle is 360.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("concert") sprite = codesters.Sprite("person1") sprite.move_down(100) sprite.set_speed(3) sprite.flip_up_down() sprite.move_right(150) sprite.move_left(200) sprite.flip_up_down()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)