In the Gregorian calendar, a leap year has a total of 366 days instead of the usual 365, as a result of adding an extra day (February 29) to the year. The criteria given below are used to decide whether a year is a leap year:
Write a function named check_leap_year that accepts a year between 1600 and
9999 as argument. It should return True if the year is a leap year and False
otherwise.
You do not have to accept input from the user or print anything to the console. You just have to write the function definition.
Example
check_leap_year(1900) -> False
check_leap_year(2000) -> True
check_leap_year(2024) -> True
Implement this function:
def check_leap_year(year):
Write the function only — the arguments are read for you and the return value is printed automatically.
Arguments arrive as one Python literal per line, in this order: year.
Input
1900
Output
False