import math
x = 16
root = math.sqrt(x)
print(root) // 4
def square_root(num):
return num**0.5
#prints out 4
print(square_root(16))
#prints out 10
print(square_root(100))
import math
8 * 8 # 64
8 ** 2. # 64
math.pow(8, 2) # 64.0
n = 5
result = pow(n, 2)
print(result)
## Two ways to square the number x
x ** 2
# Returns: 9
pow(x, 2)
# Returns: 9
#use the ** operator
3 ** 2
import turtle
turtle.begin_fill()
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.end_fill()
turtle.right(145)
turtle.forward(50)