title: Splitting a list based on a delimiter word
body: <p>I have a list containing various string values. I want to split the list whenever I see <code>WORD</code>. The result will be a list of lists (which will be the sublists of original list) containing exactly one instance of the <code>WORD</code> I can do this using a loop but is there a <em>more pythonic</em> way to do achieve this ?</p>
  
  <p>Example = <code>['A', 'WORD', 'B' , 'C' , 'WORD' , 'D']</code></p>
  
  <p>result = <code>[['A'], ['WORD','B','C'],['WORD','D']]</code></p>
  
  <p>This is what I have tried but it  actually does not achieve what I want since it will put <code>WORD</code> in a different list that it should be in:</p>
  
  <pre><code>def split_excel_cells(delimiter, cell_data):
  
      result = []
  
      temp = []
  
      for cell in cell_data:
          if cell == delimiter:
              temp.append(cell)
              result.append(temp)
              temp = []
          else:
              temp.append(cell)
  
      return result
  </code></pre>