title: Python selecting elements in a list by indices
body: <p>I have a list in python that I want to get the a set of indexes out of and save as a subset of the original list:</p>
  
  <pre><code>templist = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]]
  </code></pre>
  
  <p>and I want this:</p>
  
  <pre><code>   sublist=[[1,    4,    7,                      16,      19,20]]
  </code></pre>
  
  <p>as an example.</p>
  
  <p>I have no way of knowing ahead of time what the contents of the list elements will be .  All I have is the indices that will always be the same.</p>
  
  <p>Is there a single line way of doing this?</p>