What is the diference bewteen ( ) and [ ]. For example: in a list. Python 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the diference bewteen ( ) and [ ]. For example: in a list. Python 3

I have a problem that is : list = [1, 1, 2, 3, 5, 8, 13] print (list[list[4]]) And I don't understand it. Because I don't understand the difference bewteen ( ) and [ ] ♥

2nd Feb 2020, 2:33 PM
Mr.Wolf
Mr.Wolf - avatar
2 Answers
+ 4
Thank you. I will try to be more cautelous next time :)
2nd Feb 2020, 2:40 PM
Mr.Wolf
Mr.Wolf - avatar