human
Find the count of even odd pairs in a given Array | Function to count the pairs in array of the form ( even , odd ).
Variable to store count of such pairs.
Iterate through all pairs.
Increment count if condition is satisfied.
Driver code"
How can the above be solved in Python?

=====
Give me a code to find the count of even odd pairs in a given Array and the other steps required?
assistant
#Here is code to find the count of even odd pairs in a given Array and the other steps required.
 def findCount ( arr , n ) :
	res = 0
	for i in range ( 0 , n - 1 ) :
		for j in range ( i + 1 , n ) :
			if ( ( arr [ i ] % 2 == 0 ) and ( arr [ j ] % 2 == 1 ) ) :
				res = res + 1
	return res
a = [ 5 , 4 , 1 , 2 , 3 ]
n = len ( a )
print ( findCount ( a , n ) )