From 42611d55040e26c6be1558bae771bab8b6d0c46c 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:54 +0000 Subject: [PATCH 1/2] [Sync Iteration] python/leap/1 --- solutions/python/leap/1/leap.py | 4 ++++ 1 file changed, 4 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 000000000000..db80963bef3b --- /dev/null +++ b/solutions/python/leap/1/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 From 05b307a8807a59cabe1cc04ad67d88adc9daea83 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:56 +0000 Subject: [PATCH 2/2] [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