def slope(a,b):
    """ Gets the slope between two points.

    Parameters
    -------------
    a : Point
        The first point in the slope calculation.

    b : Point
        The second point is the slope calculation.

    Returns
    ------------
    Float
        The slope between the two points. If we have the case where we divide by zero, if b[1] > a[1], then
        we return float('inf'). Otherwise, returns float('-inf').
    """
    try:
        return (b[1]-a[1]) / (b[0]-a[0])
    except (ZeroDivisionError, RuntimeWarning, FloatingPointError) as e:
        if (b[1] > a[1]):
            return float('inf')
        else:
            return float('-inf')