Replace one : String Replace : String PYTHON examples


PYTHON examples » String » String Replace »

 

Replace one


Replace one


S = 'xxxxSPAMxxxxSPAMxxxx'

print S.replace('SPAM', 'EGGS', 1)        # replace one

           
       



Leave a Comment / Note


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


PYTHON examples

 Navioo String
» String Replace