Activity: Debugging 2
img

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

RULE: All Codesters image labels use lower case letters.

  • Click Run and watch the stage. Does an image of a pig appear?
  • Fix the program so that the sprite has the image label "pig" in all lower case letters.
  • Click Run to test if you fixed the program. When it is fixed, click Submit and Next.

stage.set_background("barn") sprite = codesters.Sprite("Pig") sprite.go_to(0, -125)
Support