Respuesta :

tonb

Answer:

import turtle

my_turtle = turtle.Turtle()

my_turtle.speed(0)

my_turtle.pendown()

colours = ["yellow", "blue", "red", "orange", "cyan", "pink", "green", "brown"]

for sides in range(8):

   my_turtle.pencolor(colours[sides])

   my_turtle.forward(100)

   my_turtle.left(45)

Explanation:

  • The pencolor statement must be inserted before the forward() call otherwise you have no control over the color of the first line.
  • You don't need the count variable, since the 'sides' variable is a perfect counter to index the colours array.