title: Converting a numpy multidimensional array to list
body: <p>I am fairly new to Python. I looked at other similar topics but they are not answering exactly what I want to do. Here is the outcome:</p>
  
  <pre><code>coslist[1:4]
  Out[94]: [array([[ 0.7984719]]), array([[ 0.33609957]]), 0]
  </code></pre>
  
  <p>This is what I want:</p>
  
  <pre><code>coslist=[0.7984719,0.33609957,0]
  </code></pre>
  
  <p>I tried this:</p>
  
  <pre><code>tolist=list(coslist)
  tolist[1:3]
  Out[98]: [array([[ 0.7984719]]), array([[ 0.33609957]])]
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>y=np.array(val).ravel().tolist()
  y[1:4]
  Out[99]: [array([[ 0.7984719]]), array([[ 0.33609957]]), 0]
  </code></pre>
  
  <p>As you see any of them is what I want. 
  Any help will be appreciated. </p>