numpy create array with values in range code example Example: numpy create array with values in range np.arange(2,11)