MULTICOLORED STAR USING PYTHON






YOUTUBE CHANNEL : https://cutt.ly/0OhGMCy


Please LIKE SHARE & SUBSCRIBE


VIDEO LINK : https://youtu.be/oPp2l7o1uB4


SOURCE CODE



import turtle

col = ['yellow','red','green','cyan','white','orange']

t = turtle.Turtle()

screen = turtle.Screen()

screen.bgcolor('black')

t.speed(30)

for i in range(120):

    t.color(col[i%6])

    t.forward(i*4)

    t.left(150)

    t.width(2)

Comments

Post a Comment

Popular posts from this blog