def main(args):
    """Solve a Sudoku board read from a text file."""
    from pprint import pprint
    path, = args
    board = lines2board(open(path))
    pprint(board)
    pprint(solve(board))
Solve a Sudoku board read from a text file.
recipes/Python/577188_Sudoku_solver_functionalprogramming/recipe-577188.py