# python program to find the power of a number
a = 10
b = 3
# calculating power using exponential oprator (**)
result = a**b
print (a, " to the power of ", b, " is = ", result)
Output
10 to the power of 3 is = 1000
Finding power of float values
# python program to find the power of a number
a = 10.23
b = 3.2
# calculating power using exponential oprator (**)
result = a**b
print (a, " to the power of ", b, " is = ", result)
Finding power of integer values
Output
Finding power of float values
Output
need an explanation for this answer? contact us directly to get an explanation for this answer