numpy add d code example Example: numpy append number to array import numpy as np a = np.array([1, 2, 3]) newArray = np.append(a, [10, 11, 12])