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