Why does this creates aliased arrays ?!! is this a expected behavior ?
In [57]: p=[[]] * 3
In [58]: p[0].append(2)
In [59]: p
Out[59]: [[2], [2], [2]]
Why does this creates aliased arrays ?!! is this a expected behavior ?
In [57]: p=[[]] * 3
In [58]: p[0].append(2)
In [59]: p
Out[59]: [[2], [2], [2]]