pythonUsing string replace()
yourString.replace(oldvalue, newvalue, count)ctrl + c.replace(replaces specific phrase with other specified phrase (does not require any imports) |
Usage example
sentence = "I like Apple"
y = sentence.replace("Apple","Pear")
print(y)
output
I like Pear