The math.pow() function is used to calculate the power of a number.

This function takes two arguments, a number (base) and a power to which the base is to be raised.

Syntax:
math.pow(x, y)

Where is the base and is the exponent.

The function returns the result of x to the power of y, as a floating value

If x is negative and y is not an integer, a ValueError is raised.

ExampleEdit & Run
import math

print(math.pow(9, 3))
print(math.pow(5, 4))
print(math.pow(3, 7))
Output:
729.0625.02187.0[Finished in 0.010903358925133944s]
ExampleEdit & Run
import math
print(math.pow(5.5, 3.3))
print(math.pow(2.2, 2.1))
print(math.pow(1.01, 3.3))
Output:
277.4577597232625.237060966720781.033381145731653[Finished in 0.0100739779882133s]