10 points · by stsewd · 8y ago · 2 comments
Seems... strange.
print (x := <something>)
PEP 572 – Assignment Expressions | peps.python.org
This is a proposal for creating a way to assign to variables within an expression using the notation NAME := expr.
Python Enhancement Proposals (PEPs)