Examveda

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]]

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


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python