From 2d51c9cbdc34210c258007da4abb9e3575d32b31 Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Wed, 29 Apr 2026 05:28:47 +0000 Subject: [PATCH] [Sync Iteration] python/leap/1 --- solutions/python/leap/1/leap.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 solutions/python/leap/1/leap.py 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) +