NumPy - Indexing and Slicing
You want to change elements in a slice of a NumPy array without modifying the original array. Which code snippet correctly achieves this?
import numpy as np arr = np.array([7, 14, 21, 28, 35]) slice_arr = arr[1:4] # What should you do next?
