WARNING: This program has a syntax error! Syntax errors are caused by code that doesn't follow the coding rules.

RULE: Each new line in a comment must start with a #.

  • Click Run and read the error message that pops up. Then click OK.
  • Line 5 should be a comment, but there's no # ! Bad input means that the line cannot be read by the computer.
  • Fix this program so that line 5 starts with a # symbol. Hint: Hold down the shift key and press 3!

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)