Activity: Debugging 3
img

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

RULE: Image labels must have parentheses around them.

  • Click Run and read the error message that pops up. Then click OK.
  • Fix the program so that the sprite's image label has parentheses around it like this: ("person4").
  • Click Run to test if you fixed the program. When it is fixed, click Submit and Next.

stage.set_background("city") sprite = codesters.Sprite("person4"
Support