square of 4 in python code example Example: how to square a number in python #16 to the power of 2 answer = 16**2