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