Solution to problem 96 (sudoku) in python