#Cut and paste the code below into this trinket
from turtle import *
from random import *
lights = ["red","yellow","green"]
r = 20

tina = Turtle()
tina.speed(0)
tina.up()
tina.goto(0,0)
tina.down()
#rectangle
for i in range(2):
  tina.forward(2*r+10)
  tina.left(90)
  tina.forward(6*r+20)
  tina.left(90)
tina.up()
#circles
for i in range(3):
  tina.goto(r+5,5+i*(2*r+5))
  tina.down()
  tina.circle(r)
  tina.up()

tina.ht()
for i in range(10):
  for j in range(3):
    tina.goto(r+5,2*(2*r+5)+5-j*(2*r+5))
    tina.begin_fill()
    tina.fillcolor(lights[j])
    tina.circle(r)
    tina.end_fill()
    tina.speed(1)
    tina.begin_fill()
    tina.fillcolor("white")
    tina.circle(r)
    tina.end_fill()
    tina.speed(0)
  