Question: Python Question. Problemm program.pydictionary.txt You've decided to travel around Australia, and as an avid polyglot you want to learn as many Australian Aboriginal languages as

Python Question.

Python Question. Problemm program.pydictionary.txt You've decided to travel around Australia, and as

an avid polyglot you want to learn as many Australian Aboriginal languages

Problemm program.pydictionary.txt You've decided to travel around Australia, and as an avid polyglot you want to learn as many Australian Aboriginal languages as you can before you go! There are quite a few though, so you decide to write a rudimentary machine translation program to help you Write a program that reads from a file called dictionary.txt which contains pairs of English and translated words separated by a comma (,) and builds a dictionary with them. Your program should then read in lines of text from the user (until a blank line) and print out a translated sentence, where each word has been looked up in the dictionary The data in dictionary.txt will look like this dictionary.txt afternoon,wuraji-wuraji I,ngaju bird,jirripirdi Like,kuja-piya dance,juka-pinyi python, malilyi Laugh,ngarlarrimi we,ngalipa Submissions Output Autosaved The first line in this dictionary.txt file means that the English word afternoon should be translated as wuraji-wuraji. Your program should work like this English: I like python ngaju kuja-piya malilyi English: we laugh ngalipa ngarlarrimi English

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!