Respuesta :

Answer:

#import turtle

import turtle

# set screen

Screen = turtle.Turtle()

# decide colors

cir= ['red','green','blue','yellow','purple']

# decide pensize

turtle.pensize(4)

# Draw star pattern

turtle.penup()

turtle.setpos(-90,30)

turtle.pendown()

for i in range(5):

   turtle.pencolor(cir[i])

   turtle.forward(200)

   turtle.right(144)

turtle.penup()

turtle.setpos(80,-140)

turtle.pendown()

# choose pen color

turtle.pencolor("Black")

turtle.done()

Explanation:

forward(length): moves the pen in the forward direction by x unit.

backward(length): moves the pen in the backward direction by x unit.

right(angle): rotate the pen in the clockwise direction by an angle x.

left(angle): rotate the pen in the anticlockwise direction by an angle x.

penup(): stop drawing of the turtle pen.

pendown(): start drawing of the turtle pen.

ACCESS MORE
EDU ACCESS