title: Reading wav files in a folder with Python
body: <p>Here is my code : </p>
  
  <pre><code>for filename in glob.glob('*.wav') : 
      for i in range(10) : 
          sr[i],x[i]=scipy.io.wavfile.read(filename)
  </code></pre>
  
  <p>I want to read .wav files in a folder and save their values on x and also their sampling rates on sr. But my code gives error: "list assignment index out of range". How can I fix it? I am using python2.7 on ubuntu.</p>