Slicing and results

Report a typo

Now let's work with a new array.

array = np.array([[4,5,6],
                  [3,2,1],
                  [7,8,9],
                  [12,11,10]])

Match each slicing with its result.

Match the items from left and right columns
array[::2, 1:]
array[-2, -1]
array[2, 1]
array[:2, ::2]
[[5 6] [8 9]]
[[4 6] [3 1]]
8
9
___

Create a free account to access the full topic