get power of a number in pythoin code example Example: how to take a number to a power in python #16 to the power of 2 answer = 16**2