NumPy - Indexing and Slicing
In NumPy slicing
arr[start:stop:step], what effect does a negative step value have?arr[start:stop:step], what effect does a negative step value have?step controls the stride between elements in the slice.step means slicing proceeds from higher to lower indices, effectively reversing the array slice.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions