Python delete in a string
<p>I have these 3 string:</p>

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

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

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

<p>I would like to remove everything after the last "," including the comma. So i want to remove these parts ",T21fdsfdsfs" ",Tdsfs" and "TD". How could i do that in Python?</p>

<p>Thanks</p>
