a = int(input("enter a real number: "))
sqrt = a**(1/2)
print("the square root of ",a ,"is",sqrt)
import turtle
for i in range(4):
turtle.forward(40)
turtle.right(90)
import math
x = 16
root = math.sqrt(x)
print(root) // 4
x = 9
y = x ** 0.5
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
import turtle
for i in range(4):
turtle.begin_fill()
turtle.forward(40)
turtle.right(90)
turtle.end_fill
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)