take the square in python code example
Example 1: python square
#use the ** operator
3 ** 2
Example 2: python square number
## Two ways to square the number x
x ** 2
# Returns: 9
pow(x, 2)
# Returns: 9
#use the ** operator
3 ** 2
## Two ways to square the number x
x ** 2
# Returns: 9
pow(x, 2)
# Returns: 9