Prerequisite: Introduction to NumPy arrays and their Attributes

Array Indexing in NumPy is very similar to indexing a list in Python.

In one dimensional array, we can access the ith element from the array starting from 0, by specifying the desired index in square brackets.

Indexing from the end of the Array

To index from the end of the array, we can use negative indices.

Indexing Multidimensional Arrays

Modifying any value in the Array