how to square python code example
Example 1: python how to draw a square
import turtle
for i in range(4):
turtle.forward(40)
turtle.right(90)
Example 2: how to do a square root in python
a = int(input("enter a real number: "))
sqrt = a**(1/2)
print("the square root of ",a ,"is",sqrt)