Definition
The pow() function returns the value of x to the power of y (x^y).
If a third parameter is present, it returns x to the power of y, modulus z.
Syntax
pow(x, y, z)
Parameters
Parameter | Description |
---|---|
x | A number, the base |
y | A number, the exponent |
z | Optional. A number, the modulus |
Examples
x = pow(4, 3)
print(x)