For this Question: Given an array of N integers. Find the xor_value of the array.
xor_value of an array is the xor of all the elements if the ith element is taken i number of times (1 based indexing).
For example xor_value of array [2, 3, 1, 4] = 2 xor 3 xor 3 xor 1 xor 1 xor 1 xor 4 xor 4 xor 4 xor 4 = 3.First line of input contains N.
Second line of input contains N space seperated integers, representing the elements of the array.

Constraints
1 <= N <= 100000
1 <= Arr[i] <= 100000Print a single integer, the xor_value of the array.Sample input
4
2 3 1 4

Sample output
3

Sample Input
5
2 7 10 2 10

Sample Output
2, I have written this Solution Code: a = int(input())
arr = list(map(int, input().split()))
if len(arr) == 1:
    print(arr[0])
else:

    answer = arr[0]
    for i in range(1, len(arr), 1):

        if(i%2 == 0):
            answer ^= arr[i]
        else:
            answer ^= arr[i]
            answer ^= arr[i]



    print(answer), In this Programming Language: Python, Now tell me if this Code is compilable or not?