Mega Code Archive

 
Categories / Python Tutorial / String
 

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

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