After #Python 3.8, you can use assignment expression to assign and return a value in the same expression, which is also called walrus operator (:=) as it resembles the eyes and tusks of a walrus on its side.
Nov 22, 2022 · 3:23 PM UTC
1
1
The walrus operator was introduced in PEP 572.
peps.python.org/pep-0572/
62


