A function to print the solution in the form of a 9x9 grid
(grid: Matrix)
| 110 | |
| 111 | |
| 112 | def print_solution(grid: Matrix) -> None: |
| 113 | """ |
| 114 | A function to print the solution in the form |
| 115 | of a 9x9 grid |
| 116 | """ |
| 117 | for row in grid: |
| 118 | for cell in row: |
| 119 | print(cell, end=" ") |
| 120 | print() |
| 121 | |
| 122 | |
| 123 | if __name__ == "__main__": |