Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use python 3 and explanation plz Create a python function 'transliterate', which accepts no arguments and returns a nested dictionary meeting the following requirements. The

image text in transcribed

use python 3 and explanation plz

Create a python function 'transliterate', which accepts no arguments and returns a nested dictionary meeting the following requirements. The purpose of this dictionary is to specify a language and a word or phrase, and get as a result the translation of that word or phrase in the specified language. This will require double indexing, as seen in the test cases below. The first key will be the language, the second the word to be translated. Your dictionary must minimally contain entries for the languages: German, Icelandic, Japanese, and Polish. The words to be translated will minimally be: Hello, Goodbye, and Acute Digestive Distress. All words using Romanized characters must be capitalized. Translations are to be taken from the first/default result from entering the words or phrases into Google Translate. The dictionary entries need to be character- correct, so accents and non-english characters must be present and accounted for. HINT: For clarity and aesthetics, it is possible to put different likes of a long dictionary or list delcaration on different lines in the code. One might declare a 2d list as shown below: #x = [[1, 2] # [3, 4] def transliterate(): return dictionary print("Are my sample test cases correct?") print("#1", transliterate() ["German"]["Goodbye" ] -- "Auf Wiedersehen") print("#2", transliterate() ["Icelandic"]["Acute Digestive Distress"] == "Br Meltingartruflanir") print("#3", transliterate(["Japanese"]["Hello") == "Chc513")

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

Beginning PostgreSQL On The Cloud Simplifying Database As A Service On Cloud Platforms

Authors: Baji Shaik ,Avinash Vallarapu

1st Edition

1484234464, 978-1484234464

More Books

Students also viewed these Databases questions

Question

What are oxidation and reduction reactions? Explain with examples

Answered: 1 week ago