var_list = [one, two, three] num = 1 for var in var_list: var = num num += 1
The above gives me an error that \'one\' doesn\'t exist. Can y
A variable doesn't exist until you create it. Simply referencing a variable isn't enough to create it. When you do [one, two, three] you are referencing the variables one, two and three before they are created.
[one, two, three]
one
two
three