I do not understand | Sololearn: Learn to code for FREE!
0

I do not understand

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

31st Dec 2021, 2:19 PM
ABOxTRKi
ABOxTRKi - avatar
2 Answers
+ 2
Copy the code, paste it in a script on sololearn playground, see what happens!
31st Dec 2021, 2:26 PM
Lisa
Lisa - avatar
+ 2
ABOxTRKi you are using wrong parentheses. Try this: print(list[list[4]])
31st Dec 2021, 2:35 PM
Coding Cat
Coding Cat - avatar