In: Computer Science
python. write a program that uses functions, and a loop with turtle graphics.
import
turtle
//importing turtle library
def
t():
//function definition
k=turtle.Turtle()
//turtle object creation
for i in range(4):
//loop for 4 sides of square
k.forward(50) //distance of
line
k.right(90)
//rotation degrees
turtle.done
//stopping graphics
t()
