From c152945875be1665abdf8b8ac1dddf801506fb54 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:55:16 +0000 Subject: [PATCH] [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