Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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

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