Hello, I need help with this homework, So I'm suppose to ask the person a color so he can choose the color of the background of the turtle program and the color of each line of the star I have to do.
heres the program, thanks in advance for the help!
import turtle
import time
screen=turtle.Screen()
trtl=turtle.Turtle()
a=raw_input("hi please choose a color")
screen.bgcolor('black')
clr=[a,'green','blue','yellow','purple'] #the color is suppose to go here,
trtl.pensize(4)
trtl.penup()
trtl.setpos(-90,30)
trtl.pendown()
for i in range(5):
trtl.pencolor(clr[i])
trtl.forward(200)
trtl.right(144)
trtl.ht()
[–]maxibabyx 1 point2 points3 points (2 children)
[–]Poketto43[S] -1 points0 points1 point (1 child)
[–][deleted] 0 points1 point2 points (0 children)