# loading library 
import numpy as np

# Create a 2D array
array = np.array([[1,2], [3,4]])

# Use np.ndenumerate() to iterate over the indices and values of the array
for index, value in np.ndenumerate(array):
        print(index, value)