Is it possible to store a variable inside another variable?
x = 5
a = x
This would return 5 if I were to print(a) it.
I want to make it so that when I say (after a = x) a = 4 I would actually be changing the value of x .
For context, I am selecting a random variable from an existing list, checking to see if it isn't 0, then changing it to 2. If it is zero, I want to select a new variable and repeat.
Thank you, all help is appreciated.