def line_to_slope(coord1, coord2):
    """
    A simple function to get the slope between two lines
    :param coord1:
    :param coord2:
    :return:
    """
    try:
        slope = float(coord1[1] - coord2[1]) / float(coord1[0] - coord2[0])
        return slope
    except ZeroDivisionError:
        return 0.