Skip to content

Commit 215b103

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 93c2193 commit 215b103

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/builtin/pow.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Python pow() built-in function
1313
</base-disclaimer-title>
1414
<base-disclaimer-content>
1515
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.
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.
2121
</base-disclaimer-content>
2222
</base-disclaimer>
2323

0 commit comments

Comments
 (0)