NumPy Array Indexing
Indexing for a 1-D array
Just like normal arrays, elements of a
NumPy array can also be accessed and changed through indexing. Through
NumPy indexing, we can also access and change elements in a specific range.
The following code snippet provides an example of all these functionalities: