Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Define a function named create_english_spanish_dictionary (english_words, spanish_words) which takes two lists of words as parameters and returns a dictionary with the English word as the

image text in transcribed

Define a function named create_english_spanish_dictionary (english_words, spanish_words) which takes two lists of words as parameters and returns a dictionary with the English word as the key and the corresponding word in Spanish as the value. For example, if the two lists contain the following: words1 =[ ' love ', 'hello', 'love' ] words2 =[ 'amor', 'hola', 'amor' ] Then, the function should return the dictionary as follows: \{'love': 'amor', 'hello': 'hola'\} Note: - You can assume that the two parameter lists have the same number of items, and the items in the two lists are in the same order. - You can assume that the translation of each word is unique. - You can assume that if an English word appears more than once in the list of English words, the corresponding Spanish translation will be the same for all instances of the word, as in the example above

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions