0
list Python
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]]) why the answer here is 8
3 Answers
+ 3
You can check these lessons if you have any dude:
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2431/?ref=app
https://www.sololearn.com/learn/Python/2432/?ref=app
https://www.sololearn.com/learn/Python/2433/?ref=app
+ 1
Read it from inside out.
list[4] is 5.
So the outer access is actually list[5].
Which is 8.
+ 1
Thank you