12.
What will be the output of the following Python code?
matrix = [[1, 2, 3, 4],
       [4, 5, 6, 7],
       [8, 9, 10, 11],
       [12, 13, 14, 15]]
 
for i in range(0, 4):
    print(matrix[i][1], end = " ")

19.
What will be the output of the following Python code?
A = [[1, 2, 3],
     [4, 5, 6],
     [7, 8, 9]]
 
[[col + 10 for col in row] for row in A]

Read More Section(Lists in Python)

Each Section contains maximum 100 MCQs question on Lists in Python. To get more questions visit other sections.