You are viewing a single comment's thread. Return to all comments →
def is_leap(year): leap = False
# Write your logic here if year % 4 == 0: pass if year % 100 == 0: if year % 400 == 0: return True
Test case 5 i.e 1992 is giving False output which should be true.
else: return False return leap
year = int(input())
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(year): leap = False
Test case 5 i.e 1992 is giving False output which should be true.
year = int(input())