Vidyalelo
Python · Q51

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 51

Q51

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

Answer: Option D

Solution

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