+ 2
what is this code mean?
list = [1ļ¼1ļ¼2ļ¼3ļ¼5ļ¼8ļ¼13] printļ¼list [list [4]]ļ¼ I don't know the line 2, nesting of two list
1 Answer
+ 8
It means take the list item indexed 4 (the number 5) and use it as an index indicator.
list[4] == 5, so:
list[list[4]] == list[5] == 8