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.