Python: practical uses for &=
3 min readJul 27, 2023
I learnt something new today and thought it might be interesting to other folks…
You might already be familiar with Bitwise operators, in which case you know that &
is a binary AND operator. 1 & 1
is True (1) but all other combinations of 1s and 0s are False (0).