Question DSA-ARR-0020
HardWhat is the output of this code?
m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
print([list(r) for r in zip(*m)])
- A.
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
- B.
[[3, 6, 9], [2, 5, 8], [1, 4, 7]]
- C.
Sign up free to see the answer and a step-by-step explanation.