0
Why is the output is 8 in the following code?
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
1 Réponse
+ 2
The number at index 4 of the list is 5.
Therefore, when we use this number as an index to access an element of the list, we get the element at index 5, which is 8.