Activity: Debugging 2
img

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

RULE: Move down commands have integer parameters. Integers are blue and not surrounded by quotes.

  • Click Run and read the error message.
  • Debug the program so that the hedgehog moves down 150 pixels.

stage.set_background("winter") sprite = codesters.Sprite("hedgehog") sprite.move_down("150")
Support