for example, I have a 9x9 sudoku board like this:
big = [[0, 0, 0, 0, 0, 0, 0, 0, 0],
[4, 0, 0, 7, 8, 9, 0, 0, 0],
[7, 8, 0, 0, 0, 0, 0, 5, 6],
[0, 2, 0, 3, 6, 0, 8, 0, 0],
[0, 0, 5, 0, 0, 7, 0, 1, 0],
[8, 0, 0, 2, 0, 0, 0, 0, 5],
[0, 0, 1, 6, 4, 0, 9, 7, 0],
[0, 0, 0, 9, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 3, 0, 0, 0, 2]]
and I have a function: def subgrid_values(board,r,c)
board
takes in the size of the board which in this case is big. r
takes in the row and c
takes in the column.
so if I input subgrid_values(big,4,5)
it will give me an output of [3,6,7,2]
I'm trying to output that list but I do not know how to
I hope this makes it clearer.