How does Python’s comma operator work during assignment?
All the expressions to the right of the assignment operator are evaluated before any of the assignments are made. From the Python tutorial: First steps towards programming: The first line contains a multiple assignment: the variables a and b simultaneously get the new values 0 and 1. On the last line this is used again, … Read more