NumPy - Indexing and Slicing
What is wrong with the following code if the goal is to create a copy of the slice?
import numpy as np arr = np.array([1, 2, 3, 4, 5]) slice_arr = arr[1:4] slice_arr[0] = 100 print(arr)
