help please python #problem2

[link text][1]
this is the question


i=int(input())
c=[]
for x in range(i):
j=input()
k=input()
b=k.split(" ")
a=b[0]
for m in range(len(b)-1):
   a= int(a) ^ int(b[m+1])
c.append(int(a))
for u in c:
print(u)

this is my solution unfortunately not accepting but at my side it is correct help please !
[1]: https://www.codechef.com/problems/CHNGOR

Oh, my bad.
First of all, make your code correctly indented, and second, you are doing XOR, we need to do OR here.
XOR is ^, while OR is |

1 Like

thanks for help. actually while copy and past i lost my indentation :slight_smile:

No problem, happy to help !

//