0

How output of this code is 8. Please help me

list = [1,1,2,3,5,8,13] print(list[list[4]])

3rd Feb 2022, 11:07 AM
IDIOT KID
IDIOT KID - avatar
4 Answers
+ 1
You can check it yourself by clicking on the code section and clicking 'new code' and choosing Python and pasting it and running it🙄
3rd Feb 2022, 11:10 AM
NEZ
NEZ - avatar
+ 1
add code too, print list[4] seperately and see what you get
3rd Feb 2022, 12:07 PM
Slick
Slick - avatar
0
NEZ I HAD TRIED BUT I CAN'T GET HOW 8 IS OUTPUT THAT'S Y I ASKED HERE
3rd Feb 2022, 3:18 PM
IDIOT KID
IDIOT KID - avatar