code: def infer_assignment(self):
          "Return the partial assignment implied by the current inferences."
          self.support_pruning()
          return dict((v, self.curr_domains[v][0])
                      for v in self.vars if 1 == len(self.curr_domains[v])f infer_assignment(self):
          "Return the partial assignment implied by the current inferences."
          self.support_pruning()
          return dict((v, self.curr_domains[v][0])
                      for v in self.vars if 1 == len(self.curr_domains[v]))
docs: Return the partial assignment implied by the current inferences.