leap year program in python Here is a simple Python program to check whether a year is a leap year Function to check if a year is a leap year
def is_leap_year(year):
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
return True
return False