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

RULE: The variable name in the test statement must be a variable created earlier in our program.

  • Click Run and read the error message.
  • Look at the second test statement. Change the variable choice to the input variable we're trying to test.
  • Debug the program so that the sprite responds based on what planet you choose.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)