Mega Code Archive
Categories
/
Python Tutorial
/
String
The replace method returns a string where all the occurrences of one string have been replaced by another
print 'This is a test'.replace('is', 'eez')