Python pow() function

Tashin

Return 5 to the power of 3 (same as 5 * 5 * 5):

x = pow(5, 3)

Run Tashin

Definition and Usage

pow() function value of x to the power of y (xy).

If the third parameter is provided, it returns x to the power of y, then the remainder is z.

Syntax

pow(x, y, z)

Parameter Value

Parameter Description
x Number, Base.
y Number, Exponent.
z Optional. Number, Modulus.

More Tashin

Tashin

Gano 5 kuma 3 kuma 4: (5 * 5 * 5) % 4

x = pow(5, 3, 4)

Run Tashin