Skip to content

Commit e8b7192

Browse files
xanniBethanyG
andauthored
Update instructions.append.md (#3812)
* 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. * Update exercises/practice/square-root/.docs/instructions.append.md Adhere to one sentence per line convention. Co-authored-by: BethanyG <[email protected]> --------- Co-authored-by: BethanyG <[email protected]>
1 parent da94511 commit e8b7192

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
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.
10+
It is possible to compute the square root of any natural number using only natural numbers in the computation.
1011

1112

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

0 commit comments

Comments
 (0)