What is the difference between the following Python expressions:
# First: x,y = y,x+y # Second: x = y y = x+y
First gives diffe
It is explained in the docs in the section entitled "Evaluation order":
... while evaluating an assignment, the right-hand side is evaluated before the left-hand side.