Python: practical uses for &=

Pete Fison
3 min readJul 27, 2023
Photo by Alexander Sinn on Unsplash

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).

--

--

Pete Fison

Experienced Python developer with a special interest in web scraping, data wrangling, ETL, NLP, and AI Prompt Engineering. Former IT Director & Video Producer.