Print [1, 2, 3, 4, 5] in reverse. A step of -1 walks backward.
Data analysis labNumPy problems
Problem 11 of 50 · Index and slice · Easy
Reverse the array
Flip a 1-D array with a negative step.
Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.
1
Your solution
2