Home /
Expert Answers /
Computer Science /
need-it-in-python-nbsp-you-are-given-a-dictionary-consisting-of-word-pairs-every-word-is-a-synonym-pa758
(Solved): Need it in python You are given a dictionary consisting of word pairs. Every word is a synonym ...
Need it in python
You are given a dictionary consisting of word pairs. Every word is a synonym of the other word in its pair. All the words in the dictionary are different. After the dictionary there's one more word given. Find a synonym for it.
Example input 13 2 Hello Hi 3 Bye Goodbye 4 List Array 5 Goodbye Example output 1 Bye