WARNING: This program has a bug, which means we need to debug it! Let's find the logic error!

RULE: We use indentation to organize our programs. If we want something inside of an if statement, it needs to have a yellow block ···· in front of it which shows that it is indented four spaces.

  • Click Run and type in square into the answer bubble. Then watch the stage to see what's wrong.
  • Debug this program so that the circle only appears if the user answers "circle".

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)