code: def searchlast(self,n=10):
                      
          solutions = deque([], n)
          for solution in self:
              solutions.append(solution)
          return solutions
docs: Return the last n results (or possibly less if not found). Note that the last results are not necessarily the best ones! Depending on the search type.