title: Split a list into sub-lists based on index ranges
body: <p>How do I split a list into sub-lists based on index ranges?</p>
  <p>e.g. original list:</p>
  <pre><code>list1 = [x,y,z,a,b,c,d,e,f,g]
  </code></pre>
  <p>using index ranges 0–4:</p>
  <pre><code>list1a = [x,y,z,a,b]
  </code></pre>
  <p>using index ranges 5–9:</p>
  <pre><code>list1b = [c,d,e,f,g]
  </code></pre>
  <p>I already known the (variable) indices of list elements which contain certain string and want to split the list based on these index values.</p>
  <p>Also need to split into variable number of sub-lists, i.e.:</p>
  <pre><code>list1a
  list1b
  .
  .
  list1[x]
  </code></pre>