Hi,
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:
- I used the csv module to read line by line the file and convert each line in lists.
- I used two loops , one to read each line and another one to read each element of each line.
- I deleted the spaces thanks to strip() method.
- 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:
https://github.com/aureliemartinet/TC101/commit/01bc06b6310ec70db2ae31f043801e436d110f3d
WSQ17 #TC101 by aureliemartinette is licensed under a Creative Commons Attribution 4.0 International License.