Question: NOTE: Please use Python's sets for the values in the dictionaries you create. If you use lists instead, your program might take a very long








NOTE: Please use Python's sets for the values in the dictionaries you create. If you use lists instead, your program might take a very long time to run You may need these set methods: add, update, remove, and intersection. Background: In this problem set, we use Python dictionaries to explore a database of movies and actors. In the first part of the problem set, we'll write simple functions to answer questions such as "How many films has Bradley Cooper appeared in?" In the next part of the assignment, we'll build a collaborative graph-a structure that links together every pair of actors who have appeared together in a film. At each step, we have some questions to answer. Database: The database is stored in a text file called imdb.txt in your repository. The information was extracted from different webpages on the Internet Movie Database (http://www.imdb.com). The database consists of all the movies nominated for the Academy Awards (Oscars) for Best Picture from 1984 until 2016, all films in the 500 top-grossing films listed on IMDB, and the 250 top-rated films and the films' complete casts. A selection of typical lines in the file is: NOTE: Please use Python's sets for the values in the dictionaries you create. If you use lists instead, your program might take a very long time to run You may need these set methods: add, update, remove, and intersection. Background: In this problem set, we use Python dictionaries to explore a database of movies and actors. In the first part of the problem set, we'll write simple functions to answer questions such as "How many films has Bradley Cooper appeared in?" In the next part of the assignment, we'll build a collaborative graph-a structure that links together every pair of actors who have appeared together in a film. At each step, we have some questions to answer. Database: The database is stored in a text file called imdb.txt in your repository. The information was extracted from different webpages on the Internet Movie Database (http://www.imdb.com). The database consists of all the movies nominated for the Academy Awards (Oscars) for Best Picture from 1984 until 2016, all films in the 500 top-grossing films listed on IMDB, and the 250 top-rated films and the films' complete casts. A selection of typical lines in the file is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
