Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

In an Excel Pivot Table, how is a Fact/Measure Column repeated?

Answered: 1 week ago