Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
pow
pow
Return base to the power exp; if mod is present, return base to the power exp, modulo mod.
Python 3.13
pow
(
base
,
exp
,
mod
=
None
)
base
The base number.
exp
The exponent.
mod
The modulus.
Examples
Python 3.13
>>
>
pow
(
2
,
3
)
8