How do I do exponentiation in python? [duplicate]

^ is the xor operator.

** is exponentiation.

2**3 = 8

Leave a Comment