title: Python: Remove Non-Alphabetical words
body: <p>I am using the following code. Why does the output of my function still contains Numeric Values?</p>
  
  <p><strong>Function</strong></p>
  
  <pre><code>def removeNonAplhabet(inputlist):
      for w in inputlist:
          if ((w.isalnum()==True) or ( (w.isdigit()==True))):
              inputlist.remove(w);
       return inputlist;       
  </code></pre>
  
  <p><strong>Main Program</strong></p>
  
  <pre><code>filtered_words=removeNonAplhabet(word_list);
  print ('Removing Non Alphabetical Characters')
  print (filtered_words)
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>['13', '1999', '2001', '280', 'amazon', 'another', 'april'] 
  </code></pre>