human
Choose points from two ranges such that no point lies in both the ranges | Function to find the required points.
Driver code"
Solution in Python:

=====
Write me a code to choose points from two ranges such that no point lies in both the ranges and the other steps required?
assistant
#Here is code to choose points from two ranges such that no point lies in both the ranges and the other steps required.
 def findPoints ( l1 , r1 , l2 , r2 ) :
	x = min ( l1 , l2 ) if ( l1 != l2 ) else - 1
	y = max ( r1 , r2 ) if ( r1 != r2 ) else - 1
	print ( x , y )
if __name__ == " _ _ main _ _ " :
	l1 = 5
	r1 = 10
	l2 = 1
	r2 = 7
	findPoints ( l1 , r1 , l2 , r2 )