human
Can you provide a code to choose two elements from the given array such that their sum is not present in any of the arrays and the other steps required given the following:
Choose two elements from the given array such that their sum is not present in any of the arrays | Function to find the numbers from the given arrays such that their sum is not present in any of the given array.
Find the maximum element from both the arrays.
Driver code"
How can the above be solved in Python?
assistant
#Here is code to choose two elements from the given array such that their sum is not present in any of the arrays and the other steps required.
 def findNum ( a , n , b , m ) :
	x = max ( a ) ;
	y = max ( b ) ;
	print ( x , y ) ;
if __name__ == " _ _ main _ _ " :
	a = [ 3 , 2 , 2 ] ;
	n = len ( a ) ;
	b = [ 1 , 5 , 7 , 7 , 9 ] ;
	m = len ( b ) ;
	findNum ( a , n , b , m ) ;