Activity: Debugging 1

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

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 button and press 3!

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support