title: How to extract multiple slices in an array?
body: <p>I need to extract data from multiple positions in an array.</p>
  
  <p>A simple array would be:-</p>
  
  <pre><code>listing = (4, 22, 24, 34, 46, 56)
  </code></pre>
  
  <p>I am familiar with slicing. For instance:-</p>
  
  <pre><code>listing[0:3]
  </code></pre>
  
  <p>would give me:-</p>
  
  <pre><code>(4, 22, 24)
  </code></pre>
  
  <p>However I am unable to get out multiple slices. For instance:-</p>
  
  <pre><code>listing[0:3, 4:5]
  </code></pre>
  
  <p>gives me</p>
  
  <pre><code>TypeError: tuple indices must be integers not tuples
  </code></pre>
  
  <p>Despite Searching two Python books and the Internet I cannot work out the syntax to use.</p>