I would like to be ablt to display 25 circles with alternating colours of red and white? But the code I produced does not work.. plz help.
from graphics import *
w = 300
h = 300
win = GraphWin("Red Circle", w, h)
center = Point(150, 150)
radius = 80
circle = Circle(center, radius)
circle.setFill('red')
circle.setWidth(2)
circle.draw(win)
win.getMouse()
win.close()
red=True
for i in range(25):
red=not red
if red:
circle.setFill('red')
else:
circle.setFill('white')