Question

Given a 2D array (matrix) in Python: matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] What are the values of matrix[1][2] and matrix[2][0] respectively?

A 5 and 7
B 6 and 7
C 4 and 8
D 2 and 9
E 3 and 1
Practice Next

Hey! Ask a query