It might be a very stupid question but I just don't understand this code:
>>> a=[[0]*3]*3
>>> a
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
>>> a[0][1]=3
>>> a
[[0, 3, 0], [0, 3, 0], [0, 3, 0]]
Why a call a[0][1] will initialize the whole second column to be 3?