
    Given a list of student risk scores (each combining attendance, grades, and engagement on a 0-9 scale), determine how many pairs of students could be grouped together for similar intervention strategies, where two students are compatible if their risk scores XOR to an even number. A pair of compatible students indicates they may benefit from similar support approaches despite having different individual risk patterns.
    

    
def find_even_pair(A):
    """
    Given a list of student risk scores (each combining attendance, grades, and engagement on a 0-9 scale), determine how many pairs of students could be grouped together for similar intervention strategies, where two students are compatible if their risk scores XOR to an even number. A pair of compatible students indicates they may benefit from similar support approaches despite having different individual risk patterns.
    

    """
def find_even_pair(A):
    """
    Given a list of student risk scores (each combining attendance, grades, and engagement on a 0-9 scale), determine how many pairs of students could be grouped together for similar intervention strategies, where two students are compatible if their risk scores XOR to an even number. A pair of compatible students indicates they may benefit from similar support approaches despite having different individual risk patterns.
    

    """
    count = 0
    for i in range(0, len(A)):
        for j in range(i + 1, len(A)):
            if (A[i] ^ A[j]) % 2 == 0:
                count += 1
    return count