
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: