How to get multiple instances of dictionaries with classes : <p>I have the following python code:</p>

<pre><code>class C:
    b={}

c1=C()
c2=C()
c1.b[1]='s1'
c2.b[1]='s2'
print(c1.b[1])
</code></pre>

<p>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....</p>
