How do I do exponentiation in python? [duplicate] September 5, 2023 by Tarik ^ is the xor operator. ** is exponentiation. 2**3 = 8