You are viewing a single comment's thread. Return to all comments →
def is_leap(y): if y%400==0: return True elif y%100==0: return False elif y%4==0: return True else: return False
year = int(input()) print(is_leap(year))
Seems like cookies are disabled on this browser, please enable them to open this website
Write a function
You are viewing a single comment's thread. Return to all comments →
def is_leap(y): if y%400==0: return True elif y%100==0: return False elif y%4==0: return True else: return False
year = int(input()) print(is_leap(year))