human
Divide array into two arrays which does not contain any pair with sum K | Function to split the given array into two separate arrays satisfying given condition.
Stores resultant arrays.
Traverse the array.
If a [ i ] is smaller than or equal to k / 2.
Print first array.
Print second array.
Driver Code.
Given K.
Given array.
Given size"
Solution in Python:

Can you provide a code to divide array into two arrays which does not contain any pair with sum K and the other steps required?
assistant
#Here is code to divide array into two arrays which does not contain any pair with sum K and the other steps required.
 def splitArray ( a , n , k ) :
	first = [ ]
	second = [ ]
	for i in range ( n ) :
		if ( a [ i ] <= k // 2 ) :
			first . append ( a [ i ] )
		else :
			second . append ( a [ i ] )
	for i in range ( len ( first ) ) :
		print ( first [ i ] , end = " ▁ " )
	print ( " " , ▁ end ▁ = ▁ " " )
	for i in range ( len ( second ) ) :
		print ( second [ i ] , end = " ▁ " )
if __name__ == ' _ _ main _ _ ' :
	k = 5
	a = [ 0 , 1 , 3 , 2 , 4 , 5 , 6 , 7 , 8 , 9 , 10 ]
	n = len ( a )
	splitArray ( a , n , k )