Augmented Assignment Expression in Python — The Walrus Operator := and Beyond

Not only about the walrus operator, but many related concepts

Yong Cui
Towards Data Science
5 min readOct 19, 2021

--

Photo by Tommy Krombacher on Unsplash

Since version 3.8, the new feature augmented assignment expression has been included in Python. In particular, a new operator emerges as a result — the inline assignment operator :=. Because of its look, this operator is more…

--

--

Work at the nexus of biomedicine, data science & mobile dev. Author of Python How-to by Manning (https://www.manning.com/books/python-how-to).