11th Jun 2018, 1:47 PM
Karthik
Karthik - avatar
9 Réponses
+ 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
11th Jun 2018, 2:03 PM
Julien Lord Maring
Julien Lord Maring - avatar
+ 1
things[2] is [1, 2, number] and things[2][2] is number.
11th Jun 2018, 2:35 PM
Julien Lord Maring
Julien Lord Maring - avatar
+ 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.
13th Jun 2018, 12:27 PM
LJ_Smart
LJ_Smart - avatar
0
Hi sir i dont understand what are you saying
11th Jun 2018, 2:32 PM
Karthik
Karthik - avatar
0
i understood thank q
11th Jun 2018, 2:36 PM
Karthik
Karthik - avatar
0
You're welcome
11th Jun 2018, 2:37 PM
Julien Lord Maring
Julien Lord Maring - avatar
0
where are you from
11th Jun 2018, 2:38 PM
Karthik
Karthik - avatar
0
France
11th Jun 2018, 2:38 PM
Julien Lord Maring
Julien Lord Maring - avatar
0
kk
11th Jun 2018, 2:38 PM
Karthik
Karthik - avatar