Page 2 - Lesson Note - LISTS
P. 2

Accessing List Elements












               List elements are accessed by index.














               Index error if index out of range both +ve and -ve:
















               Nested List

               List can be:
                L=[10, 20, 30, [15, 25, 35], 40]

               Elements of nested list can be accessed by the index L[i][j][k]….

               Accessing Nested List Elements
   1   2   3   4   5   6   7