# How to access different rows of a multidimensional NumPy array in Python # Importing Numpy moduleimport numpy as np  # Creating a 3X3 2-D Numpy arrayarr = np.array([[10, 20, 30],                 [40, 5, 66],                 [70, 88, 94]])  print("Given Array :")print(arr)  # Access the First and Last rows of arrayres_arr = arr[[0,2]]print("\nAccessed Rows :")print(res_arr)