Solving Sudoku with Python

Just a small practice exercise that solves Sudoku by iterating over valid values for each cell and backtracking on errors. I like how compact the solution is, although probably not very performant. from pprint import pprint from math import floor from copy import deepcopy grid = [] content = None with open('startgrid.txt', 'r') as file: […]