MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / print_solution

Function print_solution

backtracking/sudoku.py:112–120  ·  view source on GitHub ↗

A function to print the solution in the form of a 9x9 grid

(grid: Matrix)

Source from the content-addressed store, hash-verified

110
111
112def 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
123if __name__ == "__main__":

Callers 1

sudoku.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected