Assignment expressions (a := b) are a new syntactic structure that were proposed in PEP 572 and introduced in Python 3.8
After acceptance of PEP 572, python-3.8 introduced assignment expressions, which are a way to assign to variables within an expression using the notation NAME := expr
.