NumPy - Indexing and Slicing
What will be the output of this code?
import numpy as np arr = np.array([[1, 2], [3, 4], [5, 6]]) rows = [0, 2] cols = [1, 0] print(arr[rows, cols])
