Answered step by step
Verified Expert Solution
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
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
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