I recently started to look at a new guide and chose the [python.org tutorial](https://docs.python.org/2/tutorial/. However, in section 3.2, I cannot understand how this code:
a, b = 0, 1
while b < 10:
print b
a, b = b, a+b
gives me output
1
1
2
3
5
8
The guide mentions this:
- The first line contains a multiple assignment: the variables
a
andb
simultaneously get the new values 0 and 1. On the last line this is used again, demonstrating that the expressions on the right-hand side are all evaluated first before any of the assignments take place. The right-hand side expressions are evaluated from the left to the right.
Can anyone simplify this more for me?