# These are instance variables I will define # center - center of the circle # radius - radius class Circle: def __init__(self, center, radius): self.center = center self.radius = radius def draw(self, canvas): rad = self.radius x1 = self.center[0]-rad y1 = self.center[1]-rad x2 = self.center[0]+rad y2 = self.center[1]+rad canvas.create_oval(x1, y1, x2, y2, fill='green') def move(self, x, y): self.center = [x, y] def __repr__(self): return 'Circle center:%d radius:%d ' %(self.center, self.radius)