solver.py
def load_str(arr_str):
    """
    Load sudoku-like array and its order from CSV-like string

    Parameters
    ----------
    arr_str : str
        CSV string containing initial sudoku

    Returns
    -------
    tuple of (list of list, int)
        Initial sudoku array and sudoku order
    """
    if '\t' in arr_str:
        split = lambda s: s.strip().split('\t')
    elif ',' in arr_str:
        split = lambda s: s.strip().split(',')
    else:
        split = lambda s: iter(s)

    array = [[int(item.strip()) if item else 0 for item in split(row)] for row in arr_str.split('\n')]
    sudoku_order = validate_array(array)
    return array, sudoku_order

    Load sudoku-like array and its order from CSV-like string

    Parameters
    ----------
    arr_str : str
        CSV string containing initial sudoku

    Returns
    -------
    tuple of (list of list, int)
        Initial sudoku array and sudoku order
    
Load sudoku-like array and its order from CSV-like string
Parameters

arr_str : str
CSV string containing initial sudoku

Returns

tuple of (list of list, int)
Initial sudoku array and sudoku order
Load sudoku - like array and its order from CSV - like string Parameters arr_str : str CSV string containing initial sudoku Returns tuple of ( list of list int ) Initial sudoku array and sudoku order
def load_str(arr_str):
    if '\t' in arr_str:
        split = lambda s: s.strip().split('\t')
    elif ',' in arr_str:
        split = lambda s: s.strip().split(',')
    else:
        split = lambda s: iter(s)
    array = [[int(item.strip()) if item else 0 for item in split(row)] for row in arr_str.split('\n')]
    sudoku_order = validate_array(array)
    return array, sudoku_order
def load_str ( arr_str ) : if '\t' in arr_str : split = lambda s : s . strip ( ) . split ( '\t' ) elif ',' in arr_str : split = lambda s : s . strip ( ) . split ( ',' ) else : split = lambda s : iter ( s ) array = [ [ int ( item . strip ( ) ) if item else 0 for item in split ( row ) ] for row in arr_str . split ( '\n' ) ] sudoku_order = validate_array ( array ) return array , sudoku_order
Load sudoku-like array and its order from CSV-like string
Parameters
Load sudoku - like array and its order from CSV - like string Parameters
"""
    Load sudoku-like array and its order from CSV-like string

    Parameters
    ----------
    arr_str : str
        CSV string containing initial sudoku

    Returns
    -------
    tuple of (list of list, int)
        Initial sudoku array and sudoku order
    """
arr_str