Found it here
Also, does it read right to left or vice versa?
In assignment statements in python, the right-hand side is evaluated first before doing the actual setting of variables. So,
a , b = b, a%b
evaluates b (let's call the result temp1
), evaluates a%b which is a mod b (call that temp2
), then sets a
to temp1
and b
to temp2
.