Relative Content

Tag Archive for pythonlistvariable-assignment

Changing multiple variables in Python

Say I have three groups of variables a1, a2, a3 , b1, b2, b3, c1, c2, c3 and I want to change the first in each group using a loop rather than individual assignments.
Putting each group in a list doesn’t work: