How to find power of a number in Python?

PythonServer Side ProgrammingProgramming

Power of a number can be computed using two methods.

using math.pow() function

>>> math.pow(10,2)
100.0

Using exponentiation operator

>>> 10**2
100
raja
Published on 06-Mar-2018 15:38:55
Advertisements