human
Count pairs with Bitwise XOR as EVEN number | Function to count number of even pairs.
variable for counting even pairs.
find all pairs.
find XOR operation check even or even.
return number of even pair.
Driver Code.
calling function findevenPair and prnumber of even pair"
How can the above be solved in Python?

Give me a code to count pairs with Bitwise XOR as EVEN number and the other steps required?
assistant
#Here is code to count pairs with Bitwise XOR as EVEN number and the other steps required.
 def findevenPair ( A , N ) :
	evenPair = 0
	for i in range ( 0 , N ) :
		for j in range ( i + 1 , N ) :
			if ( ( A [ i ] ^ A [ j ] ) % 2 == 0 ) :
				evenPair += 1
	return evenPair ;
def main ( ) :
	A = [ 5 , 4 , 7 , 2 , 1 ]
	N = len ( A )
	print ( findevenPair ( A , N ) )
if __name__ == ' _ _ main _ _ ' :
	main ( )