Python -Exponentiation (Power of a number)

Python also supports math functions like find a power of  number , in this program we will learn how to find a power of number using exponential operator (**)

WRITE A PROGRAM TO FIND A TO THE POWER B  IN WHICH  A=2 , AND B=4 BY MATHS WE KNOW 2  RAISE TO POWER 4 WOULD BE  16

LETS FIND THIS USING PROGRAM PYTHON

#Author : Paras Guglani
#Website : Passionategeekz.com
#created : 23/06/2019 13:53PM

a=2
b=4
c=(a**b)
print(c)

16
[Finished in 0.3s]

Hits: 85

Share your thoughts