Hi. I make a new array, p:
p=[[x]+[0]*(y)]*z
then if x=1, y=2 and z=3, the array is:
[[1, 0, 0], [1, 0, 0], [1, 0, 0]]
But now, the problem steps in. If I now say that p[0][0]=2, then the array is:
[[2, 0, 0], [2, 0, 0], [2, 0, 0]]
Why is all the 2nd dimensions refering to each other? How do I make a non-refering 2d array?