title: Deleting array elements in python
body: <p>All, I want to delete specific array elements of one array from the other. Here is an example. The arrays are a long list of words though.</p>
  
  <pre><code>A = ['at','in','the']
  B = ['verification','at','done','on','theresa']
  </code></pre>
  
  <p>I would like to delete words that appear in A from B.</p>
  
  <pre><code>B = ['verification','done','theresa']
  </code></pre>
  
  <p>Here is what I tried so far</p>
  
  <pre><code>for word in A:
      for word in B:
          B = B.replace(word,"")
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <blockquote>
    <p>AttributeError: 'list' object has no attribute 'replace'</p>
  </blockquote>
  
  <p>What should I use to get it? </p>