Given the following list and dictionary, write list or dictionary comprehensions that would produce the following new collections:
# index 0 1 2 3
words = ["apple", "ball", "car", "dog"]
synonyms = {"hirsute" : "hairy",
"erudite" : "learned",
"abattoir": "slaughterhouse",
"kwyjibo" : "ape"}
If you are processing the words
list, write a dictionary comprehension in this format: {key: value for s in words}
If you are processing the synonyms
dictionary, write a list comprehension in this format: [expr for k, v in synonyms.items()]
Write a dictionary comprehension in this format: {key: value for k, v in synonyms.items()}