+ 1

How???

What is the output of this code? list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]]) Its answer is : 8 didn't understand!!

24th Jun 2018, 6:19 AM
vineet sawant
vineet sawant - avatar
3 Réponses
+ 4
list[4]=5 so, list[list[4]]=list[5]=8
24th Jun 2018, 6:34 AM
Pulkit Kamboj
Pulkit Kamboj - avatar
0
got it!👍 thanks
24th Jun 2018, 9:27 AM
vineet sawant
vineet sawant - avatar