parameters: (grid)
return_statement: return values
docstring: Given a string of 81 digits (or .0-), return a dict of {cell:values}
docstring_summary: Given a string of 81 digits (or .0-), return a dict of {cell:values}
docstring_tokens: Given a string of 81 digits ( or . 0 - ) return a dict of { cell : values }
function: def parse_grid(grid):
      "Given a string of 81 digits (or .0-), return a dict of {cell:values}"
      grid = [c for c in grid if c in '0.-123456789']
      values = dict([(s, digits) for s in squares]) ## Each square can be any digit
      for s,d in zip(squares, grid):
          if d in digits and not assign(values, s, d):
              return None
      return values
function_tokens: def parse_grid ( grid ) : grid = [ c for c in grid if c in '0.-123456789' ] values = dict ( [ ( s , digits ) for s in squares ] ) ## Each square can be any digit for s , d in zip ( squares , grid ) : if d in digits and not assign ( values , s , d ) : return None return values