human
Sum of XOR of sum of all pairs in an array | Python3 program to find XOR of pair sums ..
Driver program to test the above function"
Solution in Python:
 What is a code to sum of XOR of sum of all pairs in an array and the other steps required?
assistant
#Here is code to sum of XOR of sum of all pairs in an array and the other steps required.
 def xor_pair_sum ( ar , n ) :
	total = 0
	for i in range ( n ) :
		total = total ^ ar [ i ]
	return 2 * total
if __name__ == " _ _ main _ _ " :
	data = [ 1 , 2 , 3 ]
	print ( xor_pair_sum ( data , len ( data ) ) )