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