Search and Replace in Strings : Replace : String PYTHON TUTORIALS


PYTHON TUTORIALS » String » Replace »

 

Search and Replace in Strings


question = "What is the air speed velocity of an unlaiden swallow?"
print question
question2 = question.replace("swallow""European swallow")
print question2
question3 = question.replace("swallow""African swallow")
print question3



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo String
» Replace