+ 1
What is the meaning of a[2][6] in python?
I got this doubt when I do challenge it is usually asked when it's related to lists
5 Respostas
+ 3
a is a list of lists. a[2] is a's third list. a[2][6] is its 7th element
+ 6
You should take lessons on Matrix also, things become easier for you.
+ 3
a[2][6] can be value of inner list or can be dict.
+ 2
a =(1,2,3,4,5,6,7)
a[2] = 3
a[6] = 7
a[2][6] doesn't give any output.
It's better to write your code on playground to get actual result.
+ 1
7th element of 3rd list element of list a[]