diff --git a/src/main/py/calculations_with_roots.py b/src/main/py/calculations_with_roots.py index 3b5f9ea..02cf33b 100644 --- a/src/main/py/calculations_with_roots.py +++ b/src/main/py/calculations_with_roots.py @@ -8,4 +8,6 @@ def multiplyRoots(first_number, second_number): def sqrt_power(base, exponent): if base < 0: return -1 + if exponent == 0: + return 1 return potentiate(sqrt(base), exponent) \ No newline at end of file