Tuples give us various ways to access their elements. These are as follows:
Indexing
Slicing
Similar to lists, we can use the index operator [] to access an element in a tuple by using its index. Tuple indices start at zero, just like those of lists.
All of these parameters are optional, and this is how they work:
Start index: The index at which to start the slicing. The element at this index is included in the slice. If this parameter is absent, it is assumed to be zero, and thus, the slicing starts at the beginning of the tuple.
Stop index: The index at which to stop slicing. The element at this index is not included in the slice. This means that the last item in this slice will be the one just before the stop index. If this parameter is absent, the slice ends at the very end of the tuple.
Increment: This determines how many steps to take in the tuple when creating the slice. If this parameter is absent, it is assumed to be one.