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