0

what is the output of this: list [1,1,2,3,5,7,8,9] print (list [list [4]])

2nd Nov 2016, 9:21 AM
Abdul sami
3 Answers
+ 4
It's easy but but tricky .... first of all it will access the element at Index 4 of the list. Inner list will be solved first print (list [list [4]]) As you know list start with Index 0 so in the list 4th index value is 5 print(list [5]) now this will print element of index 5 which is 7 Answer is 7
2nd Nov 2016, 9:36 AM
Waqas Asghar Bhalli
Waqas Asghar Bhalli - avatar
0
ans is 7
2nd Nov 2016, 10:14 AM
Shubham Kumar Tiwari
Shubham Kumar Tiwari - avatar
0
Ans is 7
3rd Nov 2016, 1:59 AM
G YOGESH CHANDRA
G YOGESH CHANDRA - avatar