def slope(self):
    slopex = (self.end.x - self.start.x)
    slopey = (self.end.y - self.start.y)
    if (slopex == 0):
        return math.inf
    else:
        return (slopey / slopex)
    '\n        What comes in:\n          -- self\n        What goes out: Returns the slope of this Line, or\n           math.inf\n        if the line is vertical (i.e., has "infinite" slope).\n        Side effects: None.\n\n        Examples:\n            p1 = Point(30, 3)\n            p2 = Point(50, 8)\n            line1 = Line(p1, p2)\n\n            # Since the slope is (8 - 3) / (50 - 30) , which is 0.25:\n            print(line1.slope())    # Should print [approximately]: 0.25\n\n            line2 = Line(Point(10, 10), Point(10, 5))\n            print(line2.slope())    # Should print:  inf\n\n            # math.inf is NOT the STRING \'inf\', so:\n            print(line2.slope() == \'inf\')   # Should print False\n\n        Type hints:\n          :rtype: float\n        '
def slope(self):
    slopex = (self.end.x - self.start.x)
    slopey = (self.end.y - self.start.y)
    if (slopex == 0):
        return math.inf
    else:
        return (slopey / slopex)
    '\n        What comes in:\n          -- self\n        What goes out: Returns the slope of this Line, or\n           math.inf\n        if the line is vertical (i.e., has "infinite" slope).\n        Side effects: None.\n\n        Examples:\n            p1 = Point(30, 3)\n            p2 = Point(50, 8)\n            line1 = Line(p1, p2)\n\n            # Since the slope is (8 - 3) / (50 - 30) , which is 0.25:\n            print(line1.slope())    # Should print [approximately]: 0.25\n\n            line2 = Line(Point(10, 10), Point(10, 5))\n            print(line2.slope())    # Should print:  inf\n\n            # math.inf is NOT the STRING \'inf\', so:\n            print(line2.slope() == \'inf\')   # Should print False\n\n        Type hints:\n          :rtype: float\n        '