XOR

n = a XOR b

Bitwise exclusive OR.

Truth table:

a b a XOR b
0 0 0
0 1 1
1 0 1
1 1 0

Example

print 0 xor 1                     ' Output: 1
print bin(0b1100 xor 0b1010)      ' Output: 110