title: How to change the index of elements in an array
body: <p>I have an array:</p>
  
  <pre><code>b = [1,2,3,4,5,6,7,8,9,10,11]
  </code></pre>
  
  <p>I want to change the index of the elements in <strong>b</strong> based on this:</p>
  
  <pre><code>ind = [6, 4, 3, 9, 10, 8, 1, 5, 2, 7, 0]
  </code></pre>
  
  <p>The <strong>correct</strong> modified <strong>b</strong> would be:</p>
  
  <pre><code>modified_b = [11,7,9,3,2,8,1,10,6,4,5]
  </code></pre>
  
  <p>Here is what I tried:</p>
  
  <pre><code>b = [1,2,3,4,5,6,7,8,9,10,11]
  
  ind = [6, 4, 3, 9, 10, 8, 1, 5, 2, 7, 0]
  
  b_modified = []
  
  for j in range(0,len(b)):
     b_modified.insert(ind[j],b[j])
  print (b_modified)
  </code></pre>
  
  <p>The results is not correct: </p>
  
  <pre><code>[11, 1, 7, 9, 2, 3, 4, 8, 10, 5, 6]
  </code></pre>
  
  <p>Any idea how to do this in python?</p>