NumPy - Indexing and Slicing
Given
arr = np.array([10, 20, 30, 40, 50, 60, 70]), what is the output of arr[1:6:2]?arr = np.array([10, 20, 30, 40, 50, 60, 70]), what is the output of arr[1:6:2]?arr[1:6:2] starts at index 1 (value 20), stops before index 6, stepping by 2.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions