Beginner's assignment question

Schizoid Man schiz at lon.don
Sat Mar 1 09:39:48 EST 2008


As in variable assignment, not homework assignment! :)

I understand the first line but not the second of the following code:

a, b = 0, 1
a, b = b, a + b

In the first line a is assigned 0 and b is assigned 1 simultaneously.

However what is the sequence of operation in the second statement? I;m 
confused due to the inter-dependence of the variables.



More information about the Python-list mailing list