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.
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.
array[::2, 1:]array[-2, -1]array[2, 1]array[:2, ::2][[5 6] [8 9]][[4 6] [3 1]]89Create a free account to access the full topic