I'm having trouble understanding the output of a piece of python code.
mani=[]
nima=[]
for i in range(3)
nima.append(i)
mani.append(nima)
print(mani)
The output is
[[0,1,2], [0,1,2], [0,1,2]]
I can't for the life of me understand why it is not
[[0], [0,1], [0,1,2]]
Any help much appreciated.