Question: Write Python program in which you create a dictionary with keys being actors and values being the lists of movies in which these actors played.

Write Python program in which you create a dictionary with keys being actors and values being the lists of movies in which these actors played. You should include up to five movies for each actor. The dictionary should contain at least 20 actors.

Write a function that will take the dictionary described above and create a new dictionary in which the keys will be the movies and the values the lists of actors that played in those movies. Let the function return that new dictionary and next print the content of that dictionary in main program.

REMEMBER THIS IS PYTHON FOR BEGINNERS, KEEP IT AS SIMPLE AS POSSIBLE PLEASE.

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!