I have written this program and I've having a problem making a function out of it, can you help?
import math
from graphics import *
def drawface():
center = input('What is the center of the circle(enter as Point(x,y))')
size = input ('How big is the face?')
win = GraphWin()
circ = Circle(center,size)
circ.setFill('white')
eye = circ.getCenter()
y = eye.getX()
z = eye.getY()
circ.draw(win)
right = Circle(Point(int(y/1.25),int(z/1.25)),int(size/5))
right.setFill('blue')
right.setOutline('yellow')
right.draw(win)
left = right.clone()
left.move((y*.35),0)
left.draw(win)
smile1 = right.getCenter()
a = smile1.getX()
b = smile1.getY()
c = Point(a,(b*1.5))
d =c.clone()
d.move((a*.5),0)
mouth = Oval(c,d)
mouth.setOutline('red')
mouth.draw(win)
drawface()