From bef33dd76009d8652937dad035cf73f63bfc0f8a Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Fri, 8 Aug 2025 10:04:22 +0000 Subject: [PATCH] [Sync Iteration] python/square-root/1 --- solutions/python/square-root/1/square_root.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 solutions/python/square-root/1/square_root.py diff --git a/solutions/python/square-root/1/square_root.py b/solutions/python/square-root/1/square_root.py new file mode 100644 index 0000000..c1d20e6 --- /dev/null +++ b/solutions/python/square-root/1/square_root.py @@ -0,0 +1,7 @@ +def square_root(number): + if number == 1: + return number + for i in range(1, number // 2 + 1): + if i * i == number: + return i + return None \ No newline at end of file