WARNING: This program has a bug, which means we need to fix it! Empty if statements cannot run!

RULE: If statements must have code indented inside that runs if the test statement is true.

  • Click Run and read the error message.
  • Debug this program so that the sprite says "It will be an adventure!" if the user answers yes.
  • Use a Say command and change the string to complete the if statement.

stage.set_background("space") sprite = codesters.Sprite("astronaut2", 0, -150) choice = sprite.ask("Do you want to visit Mars?") choice = choice.lower() if choice == "yes": # add your code here elif choice == "no": # add your code here sprite.say("OK, have fun on earth!") else: sprite.say("I don't speak human, actually!")