title: Access multiple elements of list knowing their index
body: <p>I need to choose some elements from the given list, knowing their index. Let say I would like to create a new list, which contains element with index 1, 2, 5, from given list [-2, 1, 5, 3, 8, 5, 6]. What I did is:</p>
  
  <pre><code>a = [-2,1,5,3,8,5,6]
  b = [1,2,5]
  c = [ a[i] for i in b]
  </code></pre>
  
  <p>Is there any better way to do it? something like c = a[b] ?</p>