title: Delete last character in string (Python)
body: <p>I have a list filled with string objects. If the string object ends in a <code>W</code>, I want to delete/remove the <code>W</code> from the string. Also, in the only case that the string equals <code>UW</code> I do not want to remove the <code>W</code>. </p>
  
  <p>I have tried this:       </p>
  
  <pre><code>masterAbrevs = []
  
  for subject in masterAbrevs:
      if subject.endswith("W"):
          subject =  subject[:-1]
  </code></pre>
  
  <p>After printing <code>masterAbrevs</code> it appears that my code is doing absolutely nothing. kindly help.</p>