The replace method returns a string where all the occurrences of one string have been replaced by another : Replace : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Replace »

 

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')



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Replace