class Point: def __init__(self): self.x = 0 self.y = 0 def make_point(self,x,y): self.x = x self.y = y class Line(Point): def __init__(self): self.slope = 0 self.y_intercept = 0 def make_line(self, p1, p2): self.slope = (p2.y - p1.y)/(p2.x - p1.x) self.y_intercept = p1.y - self.slope*p1.x