how to perform 2 to the power of n in python code example Example: how to power in python 2 ** 3 == 8