With the help of sympy.Pow() method, we can find a raised to the power of b where a and b are parameters to the method.
Syntax: Pow(a, b)
a – It denotes an integer.
b – It denotes an integer.
Returns: Returns an integer which is equal to a raised to the power of b, i. e., a^b.
3^3 = 27
5^4 = 625
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.