0
How does it work?
list[1,1,2,3,5,8,13] print(list[list[4]]) Please explain in detail.
1 Answer
+ 1
list [1,1,2,3,5,8,13] doesn't make sense. First you have to create a list like this:
list = [1,1,2,3,5,8,13]
Then, to access any value in the list, you have to do this:
value = list [index]
list indexing starts with zero. To access the third value in your list ( I mean 2) you have to do this:
value = list [3]
When you do print (value) you will see it's the 2.



