I having trouble figuring out how to do what is probably a simple thing. I may have not have phrased the question well so i will just demonstrate what I want to do in the code below:
x = 1
while x != 10:
y = x
x = x + 1
I problem is that I want there to be a number after y, which is equal to x.
So when x = 1: y1 = 1
And when x = 2: y2 = 2
This code is the simplest way I think I can show my question but your answer will help me be able to run my code like I want to. I just want you to keep in mind that I will NOT accept this answer:
x = 1
while(x != 10):
if x = 1:
y1 = 1
elif x = 2:
y2 = 2
elif x = 3:
y3 = 3
(etc...)
The whole purpose of this question is to avoid using the process above. I appreciate your time.