&= Bitwise AND Assignment

Description

Performs bitwise AND 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 &= 0b0101
>>> bin(b)
'0b101'

See Also

#TODO