10 to the power python code example Example 1: how to power in python 2 ** 3 == 8 Example 2: how to take a number to a power in python #16 to the power of 2 answer = 16**2