Sign in to test your solution.
# Leap year program # ------------------------- # Subprograms # ------------------------- def is_leap_year(year): # ------------------------- # Main program # ------------------------- if is_leap_year(year): print(year, "is a leap year.")

  Python sandbox

This window allows you to run Python code without installing a thing. The code you write here is not automatically submitted to Dodona.

Test case being debugged