Run
import numpy as np # Initialize an array arr = np.array([[[11, 11, 9, 9], [11, 0, 2, 0]], [[10, 14, 9, 14], [0, 1, 11, 11]]]) # Print shape of array print('Array Shape: ',arr.shape) # Get the desired row row = arr[0, :, 1] print('Desired Row of Elements: ', row)
Output