Python hep needed- understanding list indexing
help me understand why the answer to the following code is 8: list=[1,1,2,3,5,8,13] print(list[list]) I have a basic understanding of indexing however I don't understand this code. Please help.
Indexing starts from 0. print(list[list]) will print the value in the list at index list list = 5th element = 5. list[list] = list = 6th element = 8.
oh wow that made complete sense. Again completely new to this. thanks