Search Results

Showing results 1 to 1 of 1
Search took 0.01 seconds.
Search: Posts Made By: manpreets7 ; Forum: Python and child forums
Forum: Python Jun 20th, 2009
Replies: 2
Views: 7,043
Posted By manpreets7
The stripping of characters can be better handled this way:

<snippet>
chars = ",.!?;"
word2 = word.rstrip(chars);
</snippet>

This will strip more than one characters in the end if needed.
Showing results 1 to 1 of 1

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC