2 ** 3 # 2 to the power of 3 This is how I do it with Python.

According to this Reddit post and the documentation, you can use the pow function. For example, to get 2 to the power of 3, you can use pow(2, 3).

Hopefully this helps :smile:

4 years later