0

list=[1,1,2,3,5,8,13] print(list[list[4]]) output=8 can anyone explain this??

double list

4th Aug 2020, 2:04 PM
Udit Jain
Udit Jain - avatar
2 odpowiedzi
+ 4
Udit Jain , would you please so kind and use appropriate tag for programming language? Thanks!
4th Aug 2020, 3:12 PM
Lothar
Lothar - avatar
+ 3
list[4] = 5 ; list[list[4]]= list[5] = 8 ; array works on index number list[0] = 1 ; list[1] = 1 ; list[2] = 2 ; .....so on
4th Aug 2020, 2:11 PM
Divya Mohan
Divya Mohan - avatar