What is the output of the following code ?
p = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] print(p[1][2])
2
6
8
Error
p[1] will give you [4. 5. 6]
[4. 5. 6] of index 2 i.e. [4. 5. 6][2] will result in 6
Comment here: