A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes place. A leap year is when a year has 366 days: An extra day, February 29th. The requirements for a given year to be a leap year are:

Respuesta :

Answer:

The requirements are listed below

Step-by-step explanation:

A Leap Year has 366 days (the extra day is the 29th of February).

leap Years are any year that can be exactly divided by 4 (such as 2016, 2020, 2024)

except if it can be exactly divided by 100, then it isn't (such as 2100, 2200, etc)

except if it can be exactly divided by 400, then it is (such as 2000, 2400)

Answer:

def is_leap_year(year):

  if(year % 400 == 0):

      return True

  elif year % 100 == 0:

      return False

  elif year%4 == 0:

      return True

  else:

      return False  

if __name__ == '__main__':

  n = int(input())

  if(is_leap_year(n)):

      print(n,"is a leap year.")

  else:

      print(n, "- not a leap year")

Step-by-step explanation: