Skip to content

Commit f588f25

Browse files
authored
Update instructions.append.md
Clarify that the built-in exponentiation operator ** is equivalent to pow() and therefore doesn't demonstrate an implementation of a square root algorithm, and also note that for the domain of this exercise there are available solutions using only positive integers.
1 parent da94511 commit f588f25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/practice/square-root/.docs/instructions.append.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
## How this Exercise is Structured in Python
44

55

6-
Python offers a wealth of mathematical functions in the form of the [math module][math-module] and built-ins such as [`pow()`][pow] and [`sum()`][sum].
6+
Python offers a wealth of mathematical functions in the form of the [math module][math-module] and built-ins such as the exponentiation operator `**`, [`pow()`][pow] and [`sum()`][sum].
77
However, we'd like you to consider the challenge of solving this exercise without those built-ins or modules.
88

9-
While there is a mathematical formula that will find the square root of _any_ number, we have gone the route of having only [natural numbers][nautral-number] (positive integers) as solutions.
9+
While there is a mathematical formula that will find the square root of _any_ number, we have gone the route of having only [natural numbers][nautral-number] (positive integers) as solutions. It is possible to compute the square root of any natural number using only natural numbers in the computation.
1010

1111

1212
[math-module]: https://docs.python.org/3/library/math.html

0 commit comments

Comments
 (0)