Examveda

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 = " ")

A. 1 2 3 4

B. 4 5 6 7

C. 1 3 8 12

D. 2 5 9 13

Answer: Option D


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python