STEP 8: Let's complete the flip!

The .turn_right(90) command turns a sprite 90 degrees. To do a flip, we need to spin in a complete circle or do a 360.

    • In your .turn_right(90) command, change the number inside the parentheses from 90 to 360.
    • Click Run to watch your sprite do a flip! Then, click Submit and Next to move on.

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

    stage.set_background("underwater") sprite = codesters.Sprite("fish") sprite.move_down(150) stage.wait(2) sprite.turn_right(90)
    • Run Code
    • Submit Work
    • Next Activity
    • Show Console
    • Reset Code Editor
    • Codesters How To (opens in a new tab)