Skip to content

Commit 1699a17

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 in pow.md
1 parent 215b103 commit 1699a17

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/builtin/pow.md

+5-6
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@ 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.
16-
It takes two or three arguments:
17-
pow(base, exp): Returns base raised to the power of exp (base ** exp).
18-
pow(base, exp, mod): Returns (base ** exp) % mod (for modular arithmetic).
19-
If the optional mod argument is present, the result is computed more
20-
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+
If the optional mod argument is present, the result is computed more
19+
efficiently than base ** exp % mod.
2120
</base-disclaimer-content>
2221
</base-disclaimer>
2322

0 commit comments

Comments
 (0)