↻
⏵︎ 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