def rangesplit(L,p): ret=[] for l,r in L: if rA[2]: return True elif A[0]>A[1] and A[1]