from turtle import *

setup(240, 240)
speed(0), hideturtle()

def p(x, y):
    penup(), setpos(x, y)
    pendown(), seth(0)

def fill_circle(x, y, r, c = ""):
    p(x, y - r)
    color("black", c)
    begin_fill()
    circle(r)
    end_fill()

def row(y):
    x = -100; r = 10
    while x < 100: 
        fill_circle(x, y, r)
        x += 20

y = 100
while y > -100: 
    row(y)
    y -= 20
done()

