title: python error "list indices must be integers" , they ARE integers
body: <p>I am having a problem. I have an array of 31 elements called colors. I also have another array with integer numbers that vary between 0 and 31, this is called c. I want to produce a new array where the values in c are now the corresponding values in colors.</p>
  
  <p>I write:</p>
  
  <blockquote>
    <blockquote>
      <p>newarray=colors[c]</p>
    </blockquote>
  </blockquote>
  
  <p>but get the error message "list indices must be integers" but c is an array of integers.
  I am new to python and have not got time to do the tutorials as I just need it for a specific plotting task. Could anyone give me a hand?</p>
  
  <p>Thanks</p>