
April 5, 2023
1:10 a.m.
|:=| Assignment expression In the web documentation at the end of the table in 6.17. "Operator precedence <https://docs.python.org/3/reference/expressions.html?highlight=operator%20pr...>" is the Assignment expression. What is that colon doing there? I can't type "x := 23" to Python, it gives me "SyntaxError: invalid syntax" as you would expect. None of the other operators have a colon introducer, so why with '='? Thanks, John Hallyburton (Python fan for many a yarn)