Skip to content

Commit 93c2193

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 fbe2fde commit 93c2193

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

docs/builtin/pow.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ 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 (i.e., base ** exp).
17-
pow(base, exp, mod): Returns (base ** exp) % mod (useful for modular arithmetic).
18-
If the optional mod argument is present, the result is computed more efficiently than base ** exp % mod.
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.
1921
</base-disclaimer-content>
2022
</base-disclaimer>
2123

0 commit comments

Comments
 (0)