Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

How to find power of a number in Python?

How to find power of a number in Python?                                         


1 Answer
Jayashree

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
Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.