17
What is the output of the following code?
matrix = [[1, 2], [3, 4]]
print([row[i] for i in range(2) for row in matrix])Medium
What is the output of the following code?
matrix = [[1, 2], [3, 4]]
print([row[i] for i in range(2) for row in matrix])Log in to join the discussion.