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

RULE: Programs run in order from top to bottom. The program can't run a function that hasn't been created yet!

  • Click Run and read the error message.
  • Debug the program by calling the function AFTER the function is defined.

stage.set_background("winter") snow() def snow(): stage.set_bounce(1) stage.set_gravity(10) snow_1 = codesters.Sprite("snowflake1", 0, 300) snow_1.set_y_speed(7) snow_2 = codesters.Sprite("snowflake2", 150, 300) snow_2.set_y_speed(3) snow_3 = codesters.Sprite("snowflake3", -150, 300) snow_3.set_y_speed(11)