2.6.3 Indexing and Slicing
Python Programming
Indexing and slicing are essential techniques in Python for accessing and manipulating sequences such as lists, tuples, and strings.
2.6.3.1 Indexing
Indexing allows you to access individual elements in a sequence. Python uses zero-based indexing, meaning the first element has an index of 0, the second element has an index of 1. and so on.