I have the following list:
laberinto = [
['*', '*', '|', '|', '|', '|', '|', '|', '|', '|'],
['|', '*', '*', '*', '|', '|', '|', '|', '|', '|'],
['|', '|', '|', '*', '|', '|', '*', '*', '*', '|'],
['|', '|', '|', '*', '|', '|', '*', '|', '*', '|'],
['|', '|', '|', '*', '*', '*', '*', '|', '*', '*'],
['|', '|', '|', '|', '|', '|', '|', '|', '|', '*'],
['|', '|', '|', '|', '|', '|', '|', '*', '*', '*'],
['|', '|', '|', '|', '|', '|', '|', '*', '|', '|'],
['|', '|', '|', '|', '|', '|', '|', '*', '|', '|'],
['|', '|', '|', '|', '|', '|', '|', '*', '*', '*'],
]
I would like to obtain the X and Y coordinates of each of the *, I have been able to go through the whole matrix with 2 cycles for
but I can not understand how to obtain their coordinates, I used and tried with the method index
but only I get the X coordinate of a single element.