Yes, you can slice NumPy arrays to get a range of elements. Slicing uses the colon : operator to specify the start, end, and step values.
For example:
import numpy as np
arr = np.array([10, 20, 30, 40, 50])
subset = arr[1:4] # Get elements from index 1 to 3: [20, 30, 40]
print(subset) # Output: [20 30 40]