This is another problem in the Zelle book.
How do I loop this code so that when I call the function eyes(2,4) it outputs 8 eyes on the graphic window for example
OOOO
OOOO
Please help me find a sloution.
Code:
def drawCircle(win, centre, radius, colour):
circle = Circle(radius)
circle.setFill(colour)
circle.setWidth(2)
circle.draw(win)
def eyes(row, columns):
win = GraphWin()
drawCircle(win, centre, 50, "white")
drawCircle(win, centre, 25, "blue")
drawCircle(win, centre, 10, "black")
OOOO
OOOO
Please help me find a sloution.
Comment