title: Striping & Removing numbers in a Set
body: <p>I have a simple set that contains strings and some of those strings are numbers. (i.e. <code>'1'</code>, <code>'45'</code>, <code>'5'</code>, <code>'39'</code>). </p>
  
  <p>Some of the strings have dashes (<code>-</code>) or plus (<code>+</code>) signs in them. (i.e. <code>'55+'</code>, <code>'1-3'</code>).</p>
  
  <p>I have created a function that should parse the <code>set</code> and remove the digits along with removing the characters and remove any words that are capitalized.</p>
  
  <p><strong>Function:</strong></p>
  
  <pre><code>def parse_set(s):
      for word in s.copy():
          word.strip('+-')
          if word.istitle() or word.isdigit():
              s.remove(word)
  
      completed_set = set(filter(None, s))
  
      return completed_set
  </code></pre>
  
  <p>But when I pass in a set, any regular number <em>without</em> any <code>-</code> or <code>+</code> are removed. But numbers that <em>do</em> contain the characters still remain.</p>
  
  <p>I had thought that the <code>.strip()</code> method would take care of that? </p>