I have the following python code:
class C:
b={}
c1=C()
c2=C()
c1.b[1]='s1'
c2.b[1]='s2'
print(c1.b[1])
I expected the output to be "s1" but it actually outputs "s2". Why and how can i get around this? Sorry i'm a complete newbie to python this is probably a trivial question....