title: How to split a list into chunks determined by a separator?
body: <p>I have this list (python):</p>
  <pre><code>[[item1],[item2],[item3],[/],[item4],[item5],[item6],[/]...]
  </code></pre>
  <p>I want to separate these into chunks and the elements that will go into each chunk are the elements before the separator &quot;/&quot;.</p>
  <p>So my chunks would look like:</p>
  <pre><code>chunk1 = [[item1],[item2],[item3]]
  chunk2 = [[item4],[item5],[item6]]
  </code></pre>
  <p>I've tried and tried, but nothing efficient came to mind. Tried looping through it with a for and and if element[x] == '/' then get some positions. It's very dirty and doesn't properly work.</p>
  <p>Any help would be appreciated.</p>