Q10Single correct3 Marks1 Sep 2024
What will be the output of the code below.
Code Snippet
```
def matrix_operation(matrix):
new_matrix = []
for j in range(len(matrix[0])):
modified_row = []
for i in range(len(matrix)):
modified_row.append(matrix[i][j])
new_matrix.append(modified_row)
print(new_matrix)
A = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
matrix_operation(A)
```