def solve(grid):
    "Find the solution to a Sudoku puzzle using search and constraint propagation\n\n    Parameters\n    ----------\n    grid(string)\n        a string representing a sudoku grid.\n        \n        Ex. '2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3'\n\n    Returns\n    -------\n    dict or False\n        The dictionary representation of the final sudoku grid or False if no solution exists.\n    "
    values = grid2values(grid)
    values = search(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.
def solve(grid):
    "Find the solution to a Sudoku puzzle using search and constraint propagation\n\n    Parameters\n    ----------\n    grid(string)\n        a string representing a sudoku grid.\n        \n        Ex. '2.............62....1....7...6..8...3...9...7...6..4...4....8....52.............3'\n\n    Returns\n    -------\n    dict or False\n        The dictionary representation of the final sudoku grid or False if no solution exists.\n    "
    values = grid2values(grid)
    values = search(values)
    return values