I was trying to solve a problem but I encounter a problem.
When I do this:
arr=[[[0]*5]*5]
I get this:
[[[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0],[0,0,0,0,0]]]
But when I try to select an element:
arr[0][0]
It returns this:
[0, 0, 0, 0, 0]
Why?