Python 101 – Assignment Expressions
AKA: The Walrus Operator
Assignment expressions were added to Python in version 3.8. The general idea is that an assignment expression allows you to assign to variables within an expression.
The syntax for doing this is:
NAME := expr
This operator has been called the “walrus operator”, although their real name is “assignment expression”. Interestingly, the CPython internals also r…


