title: Python replace not working with list
body: <p>My code reads a directory and stores the filename with extention into a list.  What I am trying to do is get rid of the extention with replace.  However, it is not saving into the list.</p>
  
  <pre><code> print projectFilenames
  
   for f in projectFilenames:
    print f
    f = f.replace('.txt','')
    f = f.replace('.mdown','')
    f = f.replace('.markdown','')
    print f
  
   print projectFilenames
  </code></pre>
  
  <p>and this is my output</p>
  
  <blockquote>
    <p>['2010-10-30-markdown-example.txt', '2010-12-29-hello-world.mdown', '2011-1-1-tester.markdown']<br>
    2010-10-30-markdown-example.txt<br>
    2010-10-30-markdown-example<br>
    2010-12-29-hello-world.mdown<br>
    2010-12-29-hello-world<br>
    2011-1-1-tester.markdown<br>
    2011-1-1-tester<br>
    ['2010-10-30-markdown-example.txt', '2010-12-29-hello-world.mdown', '2011-1-1-tester.markdown']</p>
  </blockquote>
  
  <p>What am I doing wrong?</p>