Jan-03-2020, 01:06 AM
Is it possible in python to change the name of a variable on each iteration of a loop? For example:
for i in range(10): variableNameToChange+i="iterationNumber=="+str(i)I know this won't work, and you can't assign to an operator, but how would you change / add to the name of a variable on each iteration of a loop, if it's possible?