import turtle
import random

list1 = [True , False  ] 

t = turtle.Turtle()
s = turtle.Screen()

s.bgcolor( 'black')
t.pencolor('red')

a = 0
b = 0 
t.speed(6)
t.penup()
t.goto(0 , 200)
t.pendown()
while( True ):
    t.forward(a)
    t.right(b)
    a += 3
    b += 1
    if( random.choice(list1)):
        t.pencolor('yellow')
    else:
        t.pencolor('red')
    if b == 210 :
        break
    t.hideturtle()
turtle.done()
