def segment_diff(s1, s2):
    """
    Returns the sum of absolute difference between
    two segments' end points.
    Only perfectly aligned segments return 0
    """
    return abs(s1[0] - s2[0]) + abs(s1[1] - s2[1])
