I am trying to create a list of lists
A = [[]]*4
printing A, gives
[[],[],[],[]]
Then I do the following
A[0].append(1)
the result comes out
[[1], [1], [1], [1]]
I want the following output:
[[1],[],[],[]]
Any advice to do so? And why the result is coming like this?