From 155e8414b2c57d83b82cae04f597d60bc931e486 Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 14:56:28 +0000 Subject: [PATCH] [Sync Iteration] python/leap/2 --- solutions/python/leap/2/leap.py | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 solutions/python/leap/2/leap.py diff --git a/solutions/python/leap/2/leap.py b/solutions/python/leap/2/leap.py new file mode 100644 index 000000000000..06847a58fd6b --- /dev/null +++ b/solutions/python/leap/2/leap.py @@ -0,0 +1,4 @@ +def leap_year(year): + """"The program determines if a year is a leap year""" + return((year%4==0 and year%100!=0) or (year%100==0 and year%400==0)) + \ No newline at end of file