Lets say I want to make unique variable names such as
var1
,
var2
and
var3
And I want to use the index to create the variable such as
counter = 0
while counter < 4:
varcounter = ...
I know in perl it would be something like
while $counter < 4 {
var$counter = ...
}
I was just wondering if there is something equivalent in python.