+ 2
Code
number = 3 things = ["string", 0, [1, 2, number], 4.56] print(things[1]) print(things[2]) print(things[2][2]) What does it mean print(things[2][2])
2 Answers
+ 4
2 number element of things is[1,2,number].
2 number element. of [1,2, number] is number.
things[2][2]=number.
here, number=3, is given
things [2][2]=3
so answer is 3.
0
"string" is 0th in things list
0 is 1st
[1,2,number] is 2nd
4.56 is 3rd
things[2] points [1,2,number]
and things[2][2] points second element of second element in things which is number variable.