The pow() function returns the result of raising a number(base)  to a certain power(exponent), i.e., base^exponent.

Syntax:
pow(base, exp)

The base is the numeric value that we want to raise to some power, while the exp i.e exponent, is the value that indicates to how many times the base should be multiplied by itself.

ExampleEdit & Run
print( pow(2, 2) )

print( pow(25, 2) )

print( pow(10.5, 5) )

print( pow(100, 0.5) )

print( pow(100, -0.5) )
Output:
4625127628.1562510.00.1[Finished in 0.010822846088558435s]

When both base and exponent are integers, the function accepts an optional third argument , the modulus, which is used to calculate the result of the expression in modula arithmetic. 

Syntax:
pow(base, exp, mod)

The expression gets solved as (base ^ exp % mod).

ExampleEdit & Run
print( pow(3, 2, 3) )

print( pow(5, 2, 3) )

print( pow(8, 6, 5) )

print( pow(10, 10, 15) )

print( pow(3.5, 4, 5) )
Output:
01410Traceback (most recent call last):  File "<string>", line 9, in <module>TypeError: pow() 3rd argument not allowed unless all arguments are integers[Finished in 0.011145862052217126s]