x ** y
The exponentiation operator raises the first operand to the power of the second. It is right associative meaning:
x ** y ** z == x ** (y ** z)
2 ** 4 // 16 2 ** -3 // 0.125 -2 ** 3 // -8 16 ** .5 // 4
Last updated 5 years ago
Was this helpful?