numpy initialize array with 0 1 dimensional code example Example: numpy fill with 0 mat = np.zeros((4,4), np.int32)