Mastering Indexing and Slicing in Python
A deep dive into indexing and slicing over ordered collections
Published in
6 min readJan 24, 2021
In Python, the elements of ordered sequences like strings or lists can be -individually- accessed through their indices. This can be achieved by providing the numerical index of the element we wish to extract from the sequence. Additionally, Python supports slicing that is a characteristic…