Help With Turtle Python

I was wondering if there was a way to make multiple turtles do the same thing without having to individually type all of their different names out

Hmm… I do not think so. Even if there is a way, it will be harder than repeating.

Yes, you can create a list of turtle objects and use a loop to make them perform the same action.

import turtle

# Create a list of turtle objects
turtles = [turtle.Turtle() for _ in range(5)]

# Loop through the list and make each turtle perform the same action
for t in turtles:
1 Like