code: def display(self, assignment):
          "Print the queens and the nconflicts values (for debugging)."
          n = len(self.vars)
          for val in range(n):
              for var in range(n):
                  if assignment.get(var,'') == val: ch = 'Q'
                  elif (var+val) % 2 == 0: ch = '.'
                  else: ch = '-'
                  print ch,
              print '    ',
              for var in range(n):
                  if assignment.get(var,'') == val: ch = '*'
                  else: ch = ' '
                  print str(self.nconflicts(var, val, assignment))+ch,
              prinf display(self, assignment):
          "Print the queens and the nconflicts values (for debugging)."
          n = len(self.vars)
          for val in range(n):
              for var in range(n):
                  if assignment.get(var,'') == val: ch = 'Q'
                  elif (var+val) % 2 == 0: ch = '.'
                  else: ch = '-'
                  print ch,
              print '    ',
              for var in range(n):
                  if assignment.get(var,'') == val: ch = '*'
                  else: ch = ' '
                  print str(self.nconflicts(var, val, assignment))+ch,
              print
docs: Print the queens and the nconflicts values (for debugging).