28. The replace () method in python 3 is used simply by: a = "This is the island of istanbul". print (a.replace("is" , "was" , 3)) #3 is the maximum replacement that can be done in the string#. >>> Thwas was the wasland of istanbul. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.