This should use a dictionary for the replacement words. Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of...





This should use a dictionary for the replacement words.







Write a program that replaces words in a sentence. The input begins with word replacement pairs (original and replacement). The next line of input is the sentence where any word on the original list is replaced.


Ex: If the input is:


automobile car manufacturer maker children kids The automobile manufacturer recommends car seats for children if the automobile doesn't already have one.

the output is:


The car maker recommends car seats for kids if the car doesn't already have one.

You can assume the original words are unique.



please make it simple im begginer in python





Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here