0
How 8 came in the output?
2 ответов
+ 4
It is a 2D array!
Col 0 1 2 3
Row 0 [[1,3,4,5],
Row 1 [2,6,8,9]]
So, the index is taken as -- row and then column
So, (x)[1,2]
is Row 1, column 2
Which is 8
+ 2
[2, 6, 8, 9] is in index position 1 of list and 8 is in index position 2 of [2, 6, 8, 9]
list[1][2] = 8