Examveda

What will be the output of the following Python code?
r = [11, 12, 13, 14, 15, 16, 17, 18, 19]
A = [[0, 10, 20],
               [30, 40, 50],
               [60, 70, 80]]
for row in A:
	for col in row:
		r.append(col+10)
r

A. [11, 12, 13, 14, 15, 16, 17, 18, 19, 10, 20, 30, 40, 50, 60, 70, 80, 90]

B. [10, 20, 30, 40, 50, 60, 70, 80, 90]

C. [11, 12, 13, 14, 15, 16, 17, 18, 19]

D. [0, 10, 20, 30, 40, 50, 60, 70, 80]

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python