title: How to return a range of elements or arrays from a list using their indices?
body: <p>I have a list</p>
  <pre><code>caches = [[(1,2,3),(2,3,4),(3,4,5)],[(11,12,13),(12,13,14),(13,14,15)],[(21,22,23),(22,23,24),(23,24,25)],[(31,32,33),(32,33,34),(33,34,35)]]
  </code></pre>
  <p>I want to get rid of the last array such that output is:</p>
  <pre><code>cache = [[(1,2,3),(2,3,4),(3,4,5)],[(11,12,13),(12,13,14),(13,14,15)],[(21,22,23),(22,23,24),(23,24,25)]
  </code></pre>
  <p>I have tried following so far:</p>
  <pre><code>cache=caches[1:L-1]
  cache=caches[1,L-1] #L is the length of the list
  cache=caches[0:L-1]
  </code></pre>
  <p>I saw the documentation but could find exactly what I wanted. What am I missing?</p>