I’m writing a python program with with a given
matrix = [['A', 'B', 'C'],
['D', 'E', 'F'],
['G', 'H', 'I']]
I’m trying to write a code so that I can define the coordinates for each value so that if I if my command is get_coordinate(‘any value in matrix’) it will print out the row and column from the matrix.
I’m having difficulty defining the rows and columns to get this code to work. What I’m really looking for is how can I write row = row of matrix, and column = column of matrix.
You can always try this,