I know you can iterate over a 2d matrix using two indexes like this:
import numpy as np A = np.zeros((10,10)) for i in range(0,10): for j in range(0,10)