Indexing NumPy Array I

Assign the last element of the NumPy array to the variable last.
import numpy as np a = np.array([1, 2, 3, 4, 5, 6]) # get last element of array
last =
print(last) # expected output: 6
Python
Setting up Python environment...
Output