+ 1
why the result is 8 ?
list = [1, 1, 2, 3, 5, 8, 13] print(list[list[4]]) why the result 8 and not 5 ?
2 Respostas
+ 4
print ( list [ list[4] ] ) --> list [4] = 5 (as list counting starts with 0);
print ( list [ 5 ] ) --> list [5] = 8 (same)
print ( 8 )
==> 8
+ 1
wow XD thx bro you really helped me