solution.py
def display(values, boxes, rows, cols):
    """
    Display the values as a 2-D grid.
    Args:
        values(dict): The sudoku in dictionary form
    """
    width = 1+max(len(values[s]) for s in boxes)
    line = '+'.join(['-'*(width*3)]*3)
    for r in rows:
        print(''.join(values[r+c].center(width)+('|' if c in '36' else '')
                      for c in cols))
        if r in 'CF': print(line)
    return

    Display the values as a 2-D grid.
    Args:
        values(dict): The sudoku in dictionary form
    
Display the values as a 2-D grid.
Display the values as a 2 - D grid .
def display(values, boxes, rows, cols):
    width = 1+max(len(values[s]) for s in boxes)
    line = '+'.join(['-'*(width*3)]*3)
    for r in rows:
        print(''.join(values[r+c].center(width)+('|' if c in '36' else '')
                      for c in cols))
        if r in 'CF': print(line)
    return
def display ( values , boxes , rows , cols ) : width = 1 + max ( len ( values [ s ] ) for s in boxes ) line = '+' . join ( [ '-' * ( width * 3 ) ] * 3 ) for r in rows : print ( '' . join ( values [ r + c ] . center ( width ) + ( '|' if c in '36' else '' ) for c in cols ) ) if r in 'CF' : print ( line ) return
Display the values as a 2-D grid.
Display the values as a 2 - D grid .
"""
    Display the values as a 2-D grid.
    Args:
        values(dict): The sudoku in dictionary form
    """
values
The sudoku in dictionary form
The sudoku in dictionary form
boxes
rows
cols