Cómo cambiar el nombre de una variable en un bucle python
for i in range(3):
locals()["group"+str(i)] = self.getGroup(selected, header+i)
Impossible Iguana
for i in range(3):
locals()["group"+str(i)] = self.getGroup(selected, header+i)
for i in group(3):
setattr(self, "group"+str(i), self.getGroup(selected, header+i)