WARNING: This program has a bug, which means we need to debug it!

RULE: sprite.move_down() has integer arguments. Integers are blue and not surrounded by quotes.

An argument is information a command needs in order to run!

  • Click Run and read the error message. What is wrong with the argument?
  • Debug the program so that the hedgehog moves down 150 pixels.

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

stage.set_background("winter") sprite = codesters.Sprite("hedgehog") sprite.move_down("150")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)