DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
7+2 =
Submit