Star Code In Python Turtle | Python Star Code | Python Turtle Full Tutorial

0


Source Code :

import turtle
import random

sc = turtle.Screen()
sc.bgcolor('black')

tr = turtle.Turtle()
color = ['red', 'blue', 'white']

for i in range(50):
    tr.color(random.choice(color))
    tr.forward(i * 10)
    tr.right(144)
   
turtle.done()

#execute..... 


Tags

Post a Comment

0Comments

If you have any doubts, Please let me know

Post a Comment (0)