I just started doing Python, so this is pretty confusing for me.
This one prints 4
a = b = 4
a = 3
print b
However, this one prints {'a': 1}
d1 = d2 = {}
d1['a'] = 1
print d2
So why the discrepancy? I thought it had something to do with mutability, but aren't int also mutable?