From [10, 20, 30, 40, 50], print the first item and the last item on separate lines. The last index is -1.
Data analysis labNumPy problems
Problem 9 of 50 · Index and slice · Easy
First and last item
Read both ends of a 1-D array.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2