SudokuFunctions.py
def solve(grid, diagonal=False):
    """Find the solution to a Sudoku puzzle using search and constraint propagation

    Parameters
    ----------
    grid(string)
        a string representing a sudoku grid.
        
        Ex. '2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3'

    Returns
    -------
    dict or False
        The dictionary representation of the final sudoku grid or False if no solution exists.
    """
    
    redefine_units(diagonal)
    values = grid2values(grid)
    values = search(values)
    if values is False:
        print("Sorry, there is no solution for this Sudoku...") 
        print("Make sure the input has been correctly inserted!  :-)")
        print()
        values = grid2values_changed(grid)
        return values
    return values
Find the solution to a Sudoku puzzle using search and constraint propagation

    Parameters
    ----------
    grid(string)
        a string representing a sudoku grid.
        
        Ex. '2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3'

    Returns
    -------
    dict or False
        The dictionary representation of the final sudoku grid or False if no solution exists.
    
Find the solution to a Sudoku puzzle using search and constraint propagation
Parameters

grid(string)
a string representing a sudoku grid.

Ex.

Returns

dict or False
The dictionary representation of the final sudoku grid or False if no solution exists.
Find the solution to a Sudoku puzzle using search and constraint propagation Parameters grid ( string ) a string representing a sudoku grid . Ex . Returns dict or False The dictionary representation of the final sudoku grid or False if no solution exists .
def solve(grid, diagonal=False):
    redefine_units(diagonal)
    values = grid2values(grid)
    values = search(values)
    if values is False:
        print("Sorry, there is no solution for this Sudoku...") 
        print("Make sure the input has been correctly inserted!  :-)")
        print()
        values = grid2values_changed(grid)
        return values
    return values
def solve ( grid , diagonal = False ) : redefine_units ( diagonal ) values = grid2values ( grid ) values = search ( values ) if values is False : print ( "Sorry, there is no solution for this Sudoku..." ) print ( "Make sure the input has been correctly inserted!  :-)" ) print ( ) values = grid2values_changed ( grid ) return values return values
Find the solution to a Sudoku puzzle using search and constraint propagation
Parameters
Find the solution to a Sudoku puzzle using search and constraint propagation Parameters
"""Find the solution to a Sudoku puzzle using search and constraint propagation

    Parameters
    ----------
    grid(string)
        a string representing a sudoku grid.
        
        Ex. '2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3'

    Returns
    -------
    dict or False
        The dictionary representation of the final sudoku grid or False if no solution exists.
    """
grid
diagonal