Q125
Which of the following matrices will throw an error in Python?
A.
[[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
[4, 5, 6],
[7, 8, 9]]
B.
[[3, 3, 3]
[4, 4, 4]
[5, 5, 5]]
Answer[4, 4, 4]
[5, 5, 5]]
C.
[(1, 2, 4),
(5, 6, 7),
(8, 9, 10)]
(5, 6, 7),
(8, 9, 10)]
D.
[2, 3, 4,
3, 3, 3,
4, 5, 6]
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