python ............. delete
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4357499/python-delete-in-a-string">Python delete in a string</a>  </p>
</blockquote>



<p>I have the following list which has 3 elements:</p>

<p>YELLOW,SMALL,STRETCH,ADULT,T</p>

<p>YELLOW,SMALL,STRETCH,ADULT,T</p>

<p>YELLOW,SMALL,STRETCH,CHILD,F</p>

<p>I would like to remove everything after the last comma.. Note that I could have more than one character after the last comma. How can I do that?</p>

<p>Thanks</p>
