STEP 11: We've completed the logic of verifying a leap year, so let's let the user know.

  • From , drag Print String inside the if statement.
  • Change the string in print() to say "That is a leap year!"
  • From , drag Else underneath and outside the if statement. Make sure it's not indented!
  • Add another Print String inside the else statement and change it to output "That is not a leap year."

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)