def overlap(ival0, ival1):
    '''
    Determine if two interval tuples have overlap.

    Args:
        iv0 ((int,int)):    An interval tuple
        iv1 ((int,int));    An interval tuple

    Returns:
        (bool): True if the intervals overlap, otherwise False

    '''
    min0, max0 = ival0
    min1, max1 = ival1
    return max(0, min(max0, max1) - max(min0, min1)) > 0
def overlap ( ival0 , ival1 ) : min0 , max0 = ival0 min1 , max1 = ival1 return max ( 0 , min ( max0 , max1 ) - max ( min0 , min1 ) ) > 0
Determine if two interval tuples have overlap.

    Args:
        iv0 ((int,int)):    An interval tuple
        iv1 ((int,int));    An interval tuple

    Returns:
        (bool): True if the intervals overlap, otherwise False