Vidyalelo
Python · Q49

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 49

Q49

What will be the output of the following Python code? A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] [A[row][1] for row in (0, 1, 2)]

A.
[7, 8, 9]
B.
[4, 5, 6]
C.
[2, 5, 8]
Answer
D.
[1, 4, 7]

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board