Perform the following Indexing Operations using Numpy array. array3d = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]]). Data science using Python in Anaconda - Jupyter
import numpy as np
array3d = np.array([[[1, 2, 3], [4, 5, 6]], [[7, 8, 9], [10, 11, 12]]])
print(array3d)
print("first row first col: ",array3d[0][0][0])
print("first row second col: ",array3d[0][0][1])
print("second row first col: ",array3d[0][1][0])
print("second row second col: ",array3d[0][1][1])
Output: -
[[[ 1 2 3]
[ 4 5 6]]
[[ 7 8 9]
[10 11 12]]]
first row first col: 1
first row second col: 2
second row first col: 4
second row second col: 5