According to this post
http://www.python-forum.org/pythonforum/viewtopic.php?f=3&t=31349#p146797
it claimed to be possible to create a list were you can store and recall data using a coordinate system ...
SomeList[1][5][2] = 234
I have been playing around with the code a while, and have ran into a problem.
No matter what I do, when I am assigning data to a coordinate, it ignores the first 2 coordinates, and writes the data to every slot for the third coordinate.
ListX=[]
ListY=[]
ListZ=[]
NewList3D=[]
DementionX=10
DementionY=5
DementionZ=5
for xx in range(DementionX):
ListX.append([0])
for yy in range(DementionY):
ListY.append(ListX)
for zz in range (DementionZ):
ListZ.append(ListY)
NewList3D = ListZ
NewList3D[4][4][9] = 123 #assign z y x
print(NewList3D[1][1][9]) #recall wrong z y x
print("=="*20)
print(NewList3D) #error
Any help trying to figure out whats wrong would be appreciated. Thank you.