In this tutorial we will talk about nested lists an element in a list can be any sort of object but
say for example integer float strings and also another list so a list can contain sublets which in turn
can contain sublease themselves and so on to arbitrary date.
So consider this list list one and one of the elements in this list is another list also called a nested
list are a sub list and the sub list in a list that is a sub list in a parent list.
Count as one single element in the list.
So the index for this sub list is 2 3.
And 4.
So the index for the sub list is 3.
So if we want to access the elements in a sub list that is 7 8 or 9.
In that case we need to add an additional index when indexing these sub list.
So we need to give two indexes defrost index is to access these sub list within the parent list.
So index is three say for example within this sub list I want to access the second element in the sub
list which is at the second position on has the first index 1.
So this is going to get a 3 number 8 in the sub list.
So we're in the Jupiter note book.
I have defined a list list one which includes a sub list as one of the elements.
So in order to access element in the sub list the index should be list 1 the sub list is it index 3
and the element 8 within the sub list is that index 1.
So this is going to retrieve number 8 from the sub list.
Here is another example of sublease the list a list to has a sub list at index 2 and these sub list
contained another sub list as you can see here and it contains the element E F and G.
So let's try to access this sub list for list using two indices.
The first sub list within list 2 is at index 2 and then the sub list within the sub list is at index
2 as well.
So we have retrieved these are blessed that contains the element E F and G.
Now if you want to access any of these elements then you need to add an additional index.
And finally if I want to access the element at 0 at index.
So this is how we can access elements in sublease.