numpy initialize array with value code example Example: initialize np array an_array = np.empty((2, 2))