Python Pattern Design
Question: I'm trying to achieve the pattern below.  
Got as far as doing the first line, then I have no clue how to code the rest
of the pattern.

[![pattern
image](http://i.stack.imgur.com/96C7z.png)](http://i.stack.imgur.com/96C7z.png)

Here's what I've done so far:

    
    
    #Timothy Shek
    from graphics import*
    
    #open Graph Window
    
    def main():
    
        win = GraphWin("Example",100,100)
        x = 7
        y = 7
        radius = 5
    
    
        while x<=30 :
            centre = Point(x,y)
            circle1 = Circle(centre,radius)
            circle1.setFill("red")
            circle1.draw(win)
            x = x+10
    
        while x>=35 and x<=65 :
            centre = Point(x+5,y)
            circle2 = Circle(centre,radius)
            circle2.setFill("red")
            circle2.draw(win)
            x = x+10
    
        print(x)
    
        while x>=67:
            centre = Point(x+10,y)
            circle1 = Circle(centre,radius)
            circle1.setFill("red")
            circle1.draw(win)
            x = x+10
    
    main()
    


Answer: I got it guys, thanks Heres the solution

    
    
    #Timothy Shek
    from graphics import*
    
    #open Graph Window
    def main():
        win = GraphWin("Patch2" ,100,100)
        for x in (5, 15, 25, 40,50,60,75,85,95):
            for y in (5, 15, 25, 40,50,60,75,85,95):
                c = Circle(Point(x+2,y), 5)
                d = Circle(Point(x+2,y), 5)
                c.draw(win)
                d.draw(win)
                c.setFill("Red")
                d.setFill("Red")
                if x==15 or x==50 or x== 85:
                    if y==15 or y==50 or y== 85:
                        c2 = Circle(Point(x+2,y),5)
                        c2.draw(win)
                        c2.setFill("White")
    
    main()
    

