LearnPy Hub
← Strings problems
Easy

Replace a Word

Read a sentence and print it with every cat replaced by dog.

Input

One line.

Output

One line.

Sample 1

Input
I have a cat
Output
I have a dog

Sample 2

Input
cat and cat
Output
dog and dog
solution.py
Output appears here
Replace a Word · Python practice problem · LearnPy Hub