Question: BlockPy: # 4 1 . 8 ) Extract Key Write a function extract _ key that consumes a key and a list of dictionaries, and
BlockPy: # Extract Key
Write a function extractkey that consumes a key and a list of dictionaries, and returns a list of just the values associated with that key. For example, in the function call below, the list would be returned. Note that your function should work for any list of dictionaries, not just a list of animals like the one shown. Therefore, you can use dict as your type parameter, and you can use list as your return type.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
