Find and Replace
Read a sentence, an old word, and a new word. Print the sentence with every occurrence of the old word replaced by the new word.
Example:
Input:
text
I like cats and cats like me cats dogs
Output:
text
I like dogs and dogs like me
💡 Hints
?Hint 1
🔒Hint 2
🔒Hint 3
python