^= Bitwise Exclusive OR Assignment

Description

Performs bitwise XOR and assigns value to the left operand.

Syntax

A ^= B

A
Integer object.
B
Integer object.

Return Value

#TODO

Time Complexity

#TODO

Remarks

Equivalent to A = A ^ B.

Example

>>> b = 0b1111
>>> b ^= 0b1010
>>> bin(b)
'0b101'

See Also

#TODO