title: Compare words ignoring certain characters - Python
body: <p>I've seen a couple of questions similar to this but none in python. Basically, I want to check if certain words are in a list. Though the words I want to compare might have a ',' which I want to ignore. I have tried this, though it does not ignore the ','.</p>
  <pre class="lang-py prettyprint-override"><code>x = ['hello','there,','person']
  y = ['there','person']
  similar = [words for words in x if words in y ]
  print(similar)
  
  </code></pre>
  <p><strong>Output</strong></p>
  <pre><code>['person']
  </code></pre>
  <p><strong>But I want</strong></p>
  <pre><code>['there','person']
  </code></pre>
  <p>Does anyone know the simplest way of implementing this?</p>