What does ** mean?


#1

I suddenly ran into the “**” being used in the lessons and I looked back and I can’t find what it means, I understand that * means multiplication but what about **??


#2

In several languages, that’s the exponent operator. For example:

x ** y

would be interpreted in Python or JavaScript as “x to the power of y”. So if x = 2, and y = 3, you’re calculating 2-cubed (2 x 2 x 2).