Star using python code

0

Making star ⭐ using python code turtle graphics code

import turtle

colors = ['yellow','green','red','white','cyan','blue']

t = turtle.Turtle()

screen = turtle.Screen()

screen.bgcolor('black')

t.speed(30)

for i in range(100):

	t.color(colors[i%6])

	t.fd(i*5)

	t.left(200)

	t.width(2)

Post a Comment

0Comments
Post a Comment (0)