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:
the output is:
You can assume the original words are unique.
please make it simple im begginer in python
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here