numpy fill array with value from 0 to n code example Example: numpy fill with 0 mat = np.zeros((4,4), np.int32)