Should You Be Using Python’s Walrus Operator? (Yes. And Here’s Why)

Python’s controversial assignment expression — known as the walrus operator — can improve your code, and it’s time you start using it!

Martin Heinz
Better Programming
Published in
7 min readAug 15, 2022

--

Photo by Jonathan Cooper on Unsplash

The assignment operator — or walrus operator as we all know it — is a feature that’s been in Python for a while now (since…

--

--