Please enable JavaScript
In Python, the exclusive or (XOR) operation is represented by the caret symbol ^. The result of XORing two bits is only true when one of the two bits is true