def leap_year(year): hundred_special = year % 100 == 0 if year % 4 == 0 and not hundred_special: return True if year % 4 == 0 and hundred_special and year % 400 == 0: return True return False