diff --git a/python/leap/leap.py b/python/leap/leap.py index 50fd034..94fdd7a 100644 --- a/python/leap/leap.py +++ b/python/leap/leap.py @@ -1,2 +1,9 @@ def leap_year(year): - pass + hundred_special = year % 100 == 0 + + if year % 4 == 0 and not hundred_special: + return True + if year % 4 == 0 and hundred_special and year % 400 == 0: + return True + + return False