Question: called most_popular_in_genre. This function should take two parameters: 1. A list of dictionaries representing movies like in Highestgrossingmovies. json (don't hard-code it to load that

 called most_popular_in_genre. This function should take two parameters: 1. A list

called most_popular_in_genre. This function should take two parameters: 1. A list of dictionaries representing movies like in Highestgrossingmovies. json (don't hard-code it to load that file though - somebody might pass a different list of movie record dictionaries to your function) 2. The name of a genre like "Action", "Comedy", or "Drama". and it should return the movie record from that genre with the highest world sales. For example, if I tested your code with a call like this print( most_popular_in_genre(movies, "Comedy" ) ) it should result in output that looks like this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!