I’ve been told it isn’t possible to simultaneously move turtles, but I’ve seen it done, I know it’s possible. I just don’t know how to go about structuring the code and I don’t know if I’m missing anything. I’m aware that the 4 while loops are one issue and I will edit them some other time. It would be much appreciated if I could get feedback or a solution. I’m new to python and coding as a whole.
Here is my code:
import turtle as trtl
array =
x=0
middle = trtl.Turtle()
trtl.shape(“circle”)
turtle = trtl.Turtle()
turtle.penup()
turtle.speed(1)
turtle.goto(44, 0)
turtle.setheading(90)
array.append(turtle)
turtle2 = trtl.Turtle()
turtle2.penup()
turtle2.speed(1)
turtle2.goto(0, 44)
turtle2.setheading(180)
array.append(turtle2)
turtle3 = trtl.Turtle()
turtle3.penup()
turtle3.speed(1)
turtle3.goto(0, -44)
turtle3.setheading(0)
array.append(turtle3)
turtle4 = trtl.Turtle()
turtle4.penup()
turtle4.speed(1)
turtle4.goto(-44, 0)
turtle4.setheading(270)
array.append(turtle4)
while turtle in array:
turtle.circle(44)
while turtle2 in array:
turtle2.circle(44)
while turtle3 in array:
turtle3.circle(44)
while turtle4 in array:
turtle4.circle(44)
wn = trtl.Screen()
wn.mainloop()