Exponent

say it: “ik-SPOH-nent” /ɪkˈspoʊnənt/

The ** operator: raises a number to a power.

What does the exponent operator do?

The exponent operator (**) raises a number to a power: 3 ** 2 means 3 times 3.

print(3 ** 2)   # 9
print(2 ** 10)  # 1024

Level: Novice · More Python terms at this level

Updated