Examveda

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

C. [(1, 2, 4),
(5, 6, 7),
(8, 9, 10)]

D. [2, 3, 4,
3, 3, 3,
4, 5, 6]

Answer: Option B


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python