Creating a 10x10x10 coordinate grid
#10x10x10
x = np.arange(0,10)
y = np.arange(0,10)
z = np.arange(0,10)
coordinates= []
#makes coordinates for the 10x10x10
for i in range(len(x)):
for j in range(len(y)):
for k in range(len(z)):
coordinates.append((x[i], y[j], z[k]))
So this is my code that has an coordinates from (0, 0, 0), (0, 0, 1)... to (9,9,9).
I want to be able to treat each coordinate as an object that has information. Example would be (0,0,0) has 1 apples, 2 oranges, 3 lemons. (0,0,1) has 1 apples, 0 oranges 0 lemons, so on so forth. Is there a way to store information linked to each coordinate?