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