Question: 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

 use python 3 and explanation plz Create a python function 'transliterate',

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

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!