import numpy as np min_array = np.zeros((4,3)) for i in range(1,5): for j in range(1,4): min_array[i-1][j-1] = i+j print(min_array)