diff --git a/python/leap/leap.py b/python/leap/leap.py index e143591..9b11a1b 100644 --- a/python/leap/leap.py +++ b/python/leap/leap.py @@ -1,2 +1,5 @@ +"""Function to calculate leap year.""" + def leap_year(year): - return True if year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) else False + """Function to calculate leap year.""" + return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)