0
I don't what the code mean
Yea i don't understand this code why i get 8 list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]])
2 Answers
+ 4
list[4] is 5
list[5] is 8
0
the array start form index 0
list [0] = 1
list [1] = 1
list [2] = 2
list [3] = 3
list [4] = 5
list [5] = 8
list [6] = 13
list[list[4]] we have index 4 = 5
list[5] we have index 5 = 8
the output is 8