0

can someone break this down for me and help me understand it

List = [1,1,2,3,5,8,13] Print(list[list[4]]) Why is the answer 8

11th Sep 2017, 4:23 AM
Darius Robinson
Darius Robinson - avatar
2 Respuestas
+ 5
First, list [4] is 5. Then, list [5] is 8! :)
11th Sep 2017, 4:28 AM
Khun Ling Tan
Khun Ling Tan - avatar
+ 3
thank I get it it took the first list number and made that the index of the second list. is that correct?
11th Sep 2017, 4:32 AM
Darius Robinson
Darius Robinson - avatar