specify which characters are to be stripped, by listing them all in a string parameter : Strip : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Strip »

 

specify which characters are to be stripped, by listing them all in a string parameter


print '*** SPAM * for * everyone!!! ***'.strip(' *!')



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo String
» Strip