Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to change the name of a variable in a loop python

for i in group(3):
    setattr(self, "group"+str(i), self.getGroup(selected, header+i)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #change #variable #loop #python
ADD COMMENT
Topic
Name
2+2 =