In this section we will look at indexing and slicing. These work in a similar way to indexing and slicing with standard Python lists, with a few differences
Indexing an array
Indexing is used to obtain individual elements from an array, but it can also be used to obtain entire rows, columns or planes from multi-dimensional arrays.
Indexing in 1 dimension
We can create 1 dimensional numpy array from a list like this:
import numpy as np