human
Write a python function which takes a list of integers and counts the number of possible unordered pairs where both elements are unequal. Here is a solution in Python: Can you provide a the Python code you requested?
assistant
#Here is the Python code you requested.
 def count_Pairs(arr,n): 
    cnt = 0; 
    for i in range(n): 
        for j in range(i + 1,n): 
            if (arr[i] != arr[j]): 
                cnt += 1; 
    return cnt;