square in python 3 code example Example: python square a number import math 8 * 8 # 64 8 ** 2. # 64 math.pow(8, 2) # 64.0