Activity: Debugging 5
img

WARNING: Logic error!This program has a bug, which means we need to fix it!

RULE: We can use wait commands to pause the stage between actions.

  • Click Run and watch the kitten quickly flip up and down. The kitten moves so fast you can't see it flip!
  • Debug this program by adding a Wait command in the correct place and setting it to wait for 1 second.


stage.set_background("flowers") sprite = codesters.Sprite("kitten") sprite.flip_up_down() sprite.flip_up_down()
Support