Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
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 EnglishStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started