String replace Demo : String Replace « String « Python






String replace Demo

String replace Demo


print 'tea for too'.replace('too', 'two')

           
       








Related examples in the same category

1.Replace allReplace all
2.Replace oneReplace one
3.String replacementString replacement
4.String method: With a minor replacementString method: With a minor replacement