I’m new to python programming, and I was just wondering if you can access a 2D array in python using Points/Coordinate?
Example you have a point:
point = (1,2)
and you have a matrix, then you access a certain part of the matrix using a coordinate
Matrix[point] = a sample value here
The popular NumPy package provides multidimensional arrays that support indexing by tuples:
Without any external libraries, there is no such thing as a “two-dimensional array” in Python. There are only nested lists, as used in the call to
numpy.array()above.