You are viewing a single comment's thread. Return to all comments →
def is_leap(year): if year in range(1900,100000): if (year % 4) == 0 and (year % 100) == 0 and (year % 400) == 0: leap = True elif (year % 4) != 0 and (year % 100) == 0: leap = False elif (year % 4) == 0 and (year % 100) != 0: leap = True elif (year % 4) !=0: leap = False elif (year % 100) !=0: leap = False elif (year % 400) !=0: leap = False return leap
Write a function
You are viewing a single comment's thread. Return to all comments →