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.

Print [1, 2, 3, 4, 5] in reverse. A step of -1 walks backward.

1

Your solution

2

Scratch