Home » Backend » Python » ** (power)
This ** (power) arithmetic operator returns the product of the two expressions.
**
A ** B
Here,
Note: In python, pow(0, 0) and 0 ** 0 is 1.
pow(0, 0)
0 ** 0
>>> 2**2 4 >>> 2**2.0 4.0 >>> 2.0**2 4.0
>>> 4**0.5 2.0 >>> 4**-2 0.0625