human
Count pairs with Odd XOR | A function will return number of pair whose XOR is odd.
To store count of XOR pair.
If XOR is odd increase count.
Return count.
Driver Code"
Solution in Python:

=====
What is a code to count pairs with Odd XOR and the other steps required?
assistant
#Here is code to count pairs with Odd XOR and the other steps required.
 def countXorPair ( arr , n ) :
	count = 0
	for i in range ( n ) :
		for j in range ( i + 1 , n ) :
			if ( ( arr [ i ] ^ arr [ j ] ) % 2 == 1 ) :
				count += 1
	return count
if __name__ == " _ _ main _ _ " :
	arr = [ 1 , 2 , 3 ]
	n = len ( arr )
	print ( countXorPair ( arr , n ) )