this is my first question, and combined with my being fairly noob feel free to tell me if there is a completely different way I should be going about this!
Anyways, I am building a program that involves coloring a map with the four color theorem in Python 2.7, attempting to use certain colors as much as possible, and I ran into a problem when running something like this code:
In one module:
class state:
a = 0
b = 0
variable_list = [a,b]
Then I import that module into my main program:
from State import state //State(uppercase "s") is the .py file with the state class in it
instance = state()
instance.a = 1
print instance.variable_list[0]
...and the program prints 0, despite changing it in the main program. Any thoughts on how to update instance.variable_list with the change?