Question: BlockPy: FinalExam - P 4 A Media is a dictionary with the following keys: name: The name of this media kind: Either movie, song, or
BlockPy: FinalExamP
A Media is a dictionary with the following keys:
"name": The name of this media
"kind": Either "movie", "song", or "game"
"duration": The length of this media in minutes
Define the function longestkind that consumes a list of Media and produces a string value representing the kind that had the highest duration. If the list is empty, return the value None.
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
