Python for Beginners : List_Part_2
Accessing elements in a List : Indexing and Slicing
- The elements in a LIST are separated by commas.
- Every element has its own position (known as index) in a LIST.
- The first element in the LIST starts at the index value 0 (zero).
- To access elements, the corresponding index values are mentioned through indexing or slicing.
Comments
Post a Comment