adplus-dvertising
frame-decoration

Question

What is the output?
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

Posted under Python

Answer: (d).2 5 9 13

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output?