title: Python script for removing words with certain letters in a list
body: <p>I am trying to run a simple python script that removes certain words containing certain letters originally part of a string, correctly separated into a list of words. I re-checked the code multiple times, yet the results are erroneous. What needs to be changed because I believe the code is correct. Please help.</p>
  <pre><code>s = &quot;&quot;&quot;aline    amine
  avine   azine
  brine   chine
  cline   coine
  crine   daine
  dwine   exine
  ezine   faine
  feine   foine
  gwine   imine
  koine   laine
  Maine   opine
  ovine   peine
  quine   raine
  rhine   saine
  seine   shine
  spine   swine
  thine   trine
  tsine   twine
  Udine   urine
  whine&quot;&quot;&quot;
  words = list(s.split())
  for i in words:
      if &quot;s&quot; in i:
          words.remove(i)
      elif &quot;a&quot; in i:
          words.remove(i)
      elif &quot;d&quot; in i:
          words.remove(i)
      elif &quot;w&quot; in i:
          words.remove(i)
      elif &quot;u&quot; in i:
          words.remove(i)
  
  print(words)
  
  </code></pre>