Sorry if the question is already answered. I couldn't figure out a term to use to search this.
I have a bunch of list coordinates in a list, like the one below.
coordinate = [[0,0,0,0], [1,1,1,1,]]
I have to use this to change a value in an array for numpy. (I didn't use numpy for the title because it can be used for normal lists too)
To change a value in numpy I have to run
array[0,0,0,0]=value
How do I make array[0,0,0,0]
from array
and [0,0,0,0]
? I know I how to use strings to make a string that looks like that, but can I use that string to run a function for slice an index?