import turtle
my_turtle = turtle.Turtle()
def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)
for i in range(50):
my_turtle.right(10)
square(100,90)
my_turtle = turtle.Turtle()
def square(length, angle):
for i in range(4):
my_turtle.forward(length)
my_turtle.right(angle)
for i in range(50):
my_turtle.right(10)
square(100,90)
No comments:
Post a Comment