You are viewing a single comment's thread. Return to all comments →
This is a simple solution just by doing the checks and return the value of the checks (True or False):
def is_leap(year): return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) year = int(input()) print(is_leap(year))
Write a function
You are viewing a single comment's thread. Return to all comments →
This is a simple solution just by doing the checks and return the value of the checks (True or False):