Today I wish share with you my solution to solve the wsq17.

I started to create a function to read the file and create a dictionary:

  1. I used the csv module to read line by line the file and convert each line in lists.
  2. I used two loops , one to read each line and another one to read each element of each line.
  3. I deleted the spaces thanks to strip() method.
  4. I created my dictionary: The keys are the movies and the set associated is all of the actors who play a role in.

Then I created each function to solve the problem.

Afterwards I created my main menu.

Here is my code: