import turtle, random colors = ["green","brown"] theColor = random.choice(colors) turtle.color(theColor)
Here is what the above code is Doing:
1. It’s creating a list of colors.
2. It’s choosing a random color from the list.
3. It’s setting the turtle’s color to the random color.