Vidyalelo
Python · Q119

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 119

Q119

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]

A.
[[11, 12, 13], [14, 15, 16], [17, 18, 19]]
Answer
B.
Error
C.
[11, 12, 13], [14, 15, 16], [17, 18, 19]
D.
[11, 12, 13, 14, 15, 16, 17, 18, 19]

Answer: Option A

Solution

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