Skip to content

Commit 6d63483

Browse files
authored
Update pow.md
Corrected the description, and content of the pow function, as well as updated with a better code, also fixed the line length issue and indentation issue in pow.md
1 parent 1699a17 commit 6d63483

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/builtin/pow.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ Python pow() built-in function
1212
From the <a target="_blank" href="https://docs.python.org/3/library/functions.html#pow">Python 3 documentation</a>
1313
</base-disclaimer-title>
1414
<base-disclaimer-content>
15-
The pow() function returns the power of a number.It takes two or three arguments:
16-
pow(base, exp): Returns base raised to the power of exp (base ** exp).
17-
pow(base, exp, mod): Returns (base ** exp) % mod (for modular arithmetic).
18-
If the optional mod argument is present, the result is computed more
19-
efficiently than base ** exp % mod.
15+
The pow() function returns the power of a number.It takes two or three arguments:
16+
pow(base, exp): Returns base raised to the power of exp (base ** exp).
17+
pow(base, exp, mod): Returns (base ** exp) % mod (for modular arithmetic).
18+
Result is computed more efficiently than base ** exp % mod, if mod arg is present.
2019
</base-disclaimer-content>
2120
</base-disclaimer>
2221

0 commit comments

Comments
 (0)