title: Explicitly select items from a list or tuple
body: <p>I have the following Python list (can also be a tuple):</p>
  
  <pre><code>myList = ['foo', 'bar', 'baz', 'quux']
  </code></pre>
  
  <p>I can say</p>
  
  <pre><code>&gt;&gt;&gt; myList[0:3]
  ['foo', 'bar', 'baz']
  &gt;&gt;&gt; myList[::2]
  ['foo', 'baz']
  &gt;&gt;&gt; myList[1::2]
  ['bar', 'quux']
  </code></pre>
  
  <p>How do I explicitly pick out items whose indices have no specific patterns? For example, I want to select <code>[0,2,3]</code>. Or from a very big list of 1000 items, I want to select <code>[87, 342, 217, 998, 500]</code>. Is there some Python syntax that does that? Something that looks like:</p>
  
  <pre><code>&gt;&gt;&gt; myBigList[87, 342, 217, 998, 500]
  </code></pre>