diff --git a/solutions/python/leap/1/leap.py b/solutions/python/leap/1/leap.py new file mode 100644 index 0000000..9a7e0c2 --- /dev/null +++ b/solutions/python/leap/1/leap.py @@ -0,0 +1,3 @@ +def leap_year(year): + return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0) +