human
Find number of pairs ( x , y ) in an array such that x ^ y > y ^ x |"
How can the above be solved in Python?

=====
Give me a code to find number of pairs ( x , y ) in an array such that x ^ y > y ^ x and the other steps required?
assistant
#Here is code to find number of pairs ( x , y ) in an array such that x ^ y > y ^ x and the other steps required.
 def countPairsBruteForce ( X , Y , m , n ) :
	ans = 0
	for i in range ( m ) :
		for j in range ( n ) :
			if ( pow ( X [ i ] , Y [ j ] ) > pow ( Y [ j ] , X [ i ] ) ) :
				ans += 1
	return ans