Examveda

What will be the output of the following Python code?
l=[[1, 2, 3], [4, 5, 6]]
for i in range(len(l)):
	for j in range(len(l[i])):
		l[i][j]+=10
l

A. No output

B. Error

C. [[1, 2, 3], [4, 5, 6]]

D. [[11, 12, 13], [14, 15, 16]]

Answer: Option D


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python