import numpy as np matrix_A = np.random.randn(5, 5) # a random 5x5 grid of numbers matrix_B = np.random.randn(5, 5) # another random 5x5 grid, same size # matrix addition — the slow, manual way output = np.zeros((5, 5)) # start with an empty 5x5 grid, all zeros for i in range(matrix_A.shape[0]): # walk through every row for j in range(matrix_A.shape[1]): # walk through every column in that row output[i, j] = matrix_A[i, j] + matrix_B[i, j] # add just these two numbers print(output) __ __