WARNING: This program has a bug, or error. So let's debug it!

RULE: When checking less than or equal or greater than or equal, make sure the < or > is before the =.

  • Click Run and read the error message that pops up. Then click OK.
  • Fix the program so that the first elif checks if month is less than or equal to 3 (month <= 3).
  • Click Run to test if you fixed the program. When it is fixed, click Submit and Next.

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)