CHECK FOR UNDERSTANDING: Here are a few questions for you to check what you've learned!

  • Use the code in the editor to answer the questions.
  • Answer the questions on the stage by clicking on the correct answers.
  • Once you've answered all 3 questions, 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") speedy = codesters.Sprite("turtle2", -200, -200) toothy = codesters.Sprite("shark2", 150, -50) def up_key(): toothy.move_up(100) stage.wait(.2) toothy.move_down(100) speedy.move_right(400) speedy.flip_right_left() speedy.move_left(400) speedy.flip_right_left() # add other actions... stage.event_key("up", up_key)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)