Introduction
Collection slicing lets you take a part of a list or array easily. Indices help you find and use positions inside collections.
You want to get a few items from a list without copying the whole list.
You need to check or change items between two positions in a collection.
You want to loop over just a part of a collection.
You want to find the position of an item to use it later.
You want to safely access elements without errors by using indices.