I am stumped by this silly and simple issue. Just can't understand what is wrong here!
a = [[0]*3]*2
print(a)
a[1][2] = 1
print(a)
i get the following output
[[0,0,0],[0,0,0]]
[[0,0,1],[0,0,1]]
I don't understand why I see two 1, while I changed only one of them. How do I change only one of them?