Closed vovs03 closed 1 year ago
def is_leap_year(year): if year % 400 == 0: res = True elif year % 4 == 0 and year % 100 != 0: res = True else: res = False return res
def is_leap_year(year): return year %400 == 0 or ( year %4 == 0 and year %100 != 0 ) print(is_leap_year(year))%
af63 commit