What code can I write for nested loops to print the row, column and number for each non-empty location in bd.
bd = [ [ '1', '.', '.', '.', '2', '.', '.', '3', '7'],
[ '.', '6', '.', '.', '.', '5', '1', '4', '.'],
[ '.', '5', '.', '.', '.', '.', '.', '2', '9'],
[ '.', '.', '.', '9', '.', '.', '4', '.', '.'],
[ '.', '.', '4', '1', '.', '3', '7', '.', '.'],
[ '.', '.', '1', '.', '.', '4', '.', '.', '.'],
[ '4', '3', '.', '.', '.', '.', '.', '1', '.'],
[ '.', '1', '7', '5', '.', '.', '.', '8', '.'],
[ '2', '8', '.', '.', '4', '.', '.', '.', '6'] ]
Output should be
(0,0) has 1
..and so on for the rest of the bd table