title: read filenames and write directly into a list
body: <p>Is it possible to get Python to look in a folder and put all of the filenames (with a certain extension) into a list?</p>
  
  <p>e.g.:</p>
  
  <pre><code>[filename1.txt, filename2.txt,...]
  </code></pre>