Why does
a = 3
b = 5
a,b = a + b,a
print a,b
-------
8 3
differ from
a = 3
b = 5
a = a + b
b = a
print a,b
------
8 8
Can someone explain how Python interprets the assignments differently? Does Python still keep the old value of a in the first paragraph of code, when a is assigned to a + b?
(a= a+b)
Also, does these assignment properties change from Python 2 to Python 3?