SudokuFunctions.py
def check_boxes(values):
    """This function serves to identify boxes in the same unit (row, column, 3x3 square and diagonal)
    with equal number

    Parameters
    ----------
    values(dict)
        a dictionary of the form {'box_name': '123456789', ...}

    Returns
    -------
    list
        The dictionary representation of the final sudoku grid or False if no solution exists.
    """
    
    list_of_boxes=[]
    for unit in unitlist:
        d={}
        for box in unit:
            if values[box]!='_':
                if values[box] in d:
                    list_of_boxes.append([box, d[values[box]]])
                else:
                    d[values[box]]=box
    if len(list_of_boxes)==0:
        list_of_boxes='We have not found any errors!'
    return list_of_boxes
This function serves to identify boxes in the same unit (row, column, 3x3 square and diagonal)
    with equal number

    Parameters
    ----------
    values(dict)
        a dictionary of the form {'box_name': '123456789', ...}

    Returns
    -------
    list
        The dictionary representation of the final sudoku grid or False if no solution exists.
    
This function serves to identify boxes in the same unit (row, column, 3x3 square and diagonal)
with equal number

Parameters



Returns

list
The dictionary representation of the final sudoku grid or False if no solution exists.
This function serves to identify boxes in the same unit ( row column 3x3 square and diagonal ) with equal number Parameters Returns list The dictionary representation of the final sudoku grid or False if no solution exists .
def check_boxes(values):
    list_of_boxes=[]
    for unit in unitlist:
        d={}
        for box in unit:
            if values[box]!='_':
                if values[box] in d:
                    list_of_boxes.append([box, d[values[box]]])
                else:
                    d[values[box]]=box
    if len(list_of_boxes)==0:
        list_of_boxes='We have not found any errors!'
    return list_of_boxes
def check_boxes ( values ) : list_of_boxes = [ ] for unit in unitlist : d = { } for box in unit : if values [ box ] != '_' : if values [ box ] in d : list_of_boxes . append ( [ box , d [ values [ box ] ] ] ) else : d [ values [ box ] ] = box if len ( list_of_boxes ) == 0 : list_of_boxes = 'We have not found any errors!' return list_of_boxes
This function serves to identify boxes in the same unit (row, column, 3x3 square and diagonal)
with equal number
This function serves to identify boxes in the same unit ( row column 3x3 square and diagonal ) with equal number
"""This function serves to identify boxes in the same unit (row, column, 3x3 square and diagonal)
    with equal number

    Parameters
    ----------
    values(dict)
        a dictionary of the form {'box_name': '123456789', ...}

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