Vidyalelo
Python · Q125

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 125

Q125

Which of the following matrices will throw an error in Python?

A.
[[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
B.
[[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]
Answer
C.
[(1, 2, 4),
(5, 6, 7),
(8, 9, 10)]
D.
[2, 3, 4,
3, 3, 3,
4, 5, 6]

Answer: Option B

Solution

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