I want to be able to draw an eye for a colour inputted by the user. If the user enters the colour green,brown or blue then the eye should be drwan orelse an error message saying "not a valid colour" should be outputted
from graphics import *
def drawCircle(win, centre, radius, colour):
circle = Circle(centre, radius)
circle.setFill(colour)
circle.setWidth(2)
circle.draw(win)
def eyePicker():
colour=raw_input("Please enter the colour: ")
def drawEye(win, centre, radius, colour):
w = 250
h = 250
win = GraphWin("Eye", w, h)
# center should be at 1/2 width and height
centre = Point(w//2, h//2)
drawCircle(win, centre, 40, "colour")
drawCircle(win, centre, 20, "colour")
drawCircle(win, centre, 10, "colour")
win.getMouse()
win.close()
drawEye()