EXTEND: We only need to tell the user if it's a leap year or not. If it isn't a leap year, let's also tell them why!

  • Comment out unneeded print()s and improve outputs, like this: print(year, "is not a leap year.")
  • Inside either else-block, add three if statements under print(year,·"is·not·a·leap·year.")
  • Use one if to check that condition_1a is False, one to check that condition_1b is False, and one for condition2. Include a print() in each if-block to let the user know which condition or conditions are False!

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)