+ 2
What is print (things[2] [2])
https://www.sololearn.com/learn/JUMP_LINK__&&__Python__&&__JUMP_LINK/2431/
9 Respuestas
+ 1
When you have a list L you can access in the i-eme element with the corresponding index which is i-1(ex L[i-1]) alright?
If L[i-1] is a list or a Tuple or so on which can be access with an index you can access to the j-eme element of L[i-1] with L[i-1][j-1]
So, in the lesson print(things[2][2]) just prints the third element (index 2) of the list which is in the third place (index 2) of the list things.
Hope that it helps you
+ 1
things[2] is [1, 2, number] and things[2][2] is number.
+ 1
In print (things [2][2]) :- the first [2] represents the first item in the variable. And the second [2] represents the item in the first [2]. Hope you understand. If you don't reply to this for more explanation and I'll explain in more detail. You Welcome.
0
Hi sir i dont understand what are you saying
0
i understood thank q
0
You're welcome
0
where are you from
0
France
0
kk