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.

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.

import math

print(math.pow(9, 3))
print(math.pow(5, 4))
print(math.pow(3, 7))
import math
print(math.pow(5.5, 3.3))
print(math.pow(2.2, 2.1))
print(math.pow(1.01, 3.3))