What is the diference bewteen ( ) and [ ]. For example: in a list. Python 3 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
+ 4
Thank you. I will try to be more cautelous next time :)
2nd Feb 2020, 2:40 PM
Mr.Wolf
Mr.Wolf - avatar