code: def flatten(self, lst):
          
          if lst == []:
              return lst
          if isinstance(lst[0], list):
              return self.flatten(lst[0]) + self.flatten(lst[1:])
          return lst[:1] + self.flatten(lst[1:])
docs: Turn a list of lists into a list.