Can someone help me with this code.. I get an error when I try to execute it
from graphics import *
def main():
colour = raw_input("Enter the colour: ")
win = GraphWin("Patch", 200, 200)
drawCircle(win, 50, 50, colour)
def drawCircle(win, x, y, colour):
for i in range(5):
for j in range(5):
if (i + j) % 2 == 0:
topLeftX = x + i * 20
topLeftY = y + j * 20
circle = Circle(Point(topLeftX, topLeftY),
Point(topLeftX + 20, topLeftY + 20))
circle.setFill(colour)
circle.draw(win)
main()