What Does Colon Equals Mean In Python? The New Walrus Operator :=
In Python 3.8 a new assignment expression hit allowing for easier access of variables that are used when being assigned. Here are some tips on how this can be used in your everyday coding. Wait, what’s an assignment expression? You may have heard of the term assignment operator and seen its use in the wild when doing things like incrementing a variable by 1 in Python. This is where an operator, like + or - is combined with the assignment key =. For example, x += 1 which means I’m adding the value of 1 to the variable x. ...