What Is the Walrus Operator (:=) in Python and Why It's So Useful
Back in Python 3.8, a new syntax quietly showed up and turned out to be surprisingly handy. It’s called the walrus operator (:=). No, it’s not an actual walrus

Back in Python 3.8, a new syntax quietly showed up and turned out to be surprisingly handy. It’s called the walrus operator (:=
).
No, it’s not an actual walrus