Bitwise AND Assignment¶
Bitwise AND assignment operator (&=
) can be used to perform bitwise AND operation and assign it to a variable.
Syntax
variable &= expr
Example
a &= 0
b &= 1