Waiting for answer This question has not been answered yet. You can hire a professional tutor to get the answer.

QUESTION

Build a dictionary that contains the movie collection below. Hint: Combine movie title and director into a list.

DirectorSteven SpielbergChristopher NolanMartin ScorseseSean PennChristopher NolanAdam ElliotTom HooperMichel HazanaviciusTate TaylorBen AffleckSteve McQueenAlejandro G. InarrituTom McCarthySteven Spielberg

(2) Prompt the user for a single year and output the movie title(s) and director(s) from that year. Output N/A if the year is invalid. (4 pts)

Ex:

:The Artist, Michel HazanaviciusThe Help, Tate Taylor

(3) After prompting the user for a year and displaying the title(s) and directors(s) from that year, display a menu. The menu enables a user to display the movies sorted by year, director, or movie title. Each option is represented by a single character.

The program initially outputs the menu, and outputs the menu after a user chooses an option. If an invalid character is entered, continue to prompt for a valid choice. The program ends when the user chooses the option to Quit. Hint: Implement Quit before implementing other options. For this step, the other options do nothing. (1 pt)

Ex:

Enter a year between 2005 and 2016:2011The Artist, Michel HazanaviciusThe , Tate TaylorMENU :y - d - Directort - Movie titleq - Quit an :

(4) Implement the sort by year menu option. Note: There is a newline and a tab between the year and the movie title/director. (2 pts)

Ex:

...Choose an option:yMunich, Steven SpielbergThe Prestige, Christopher NolanThe Departed, Martin ScorseseInto the Wild, Sean PennThe Dark Knight, Christopher Nolan...

(5) Implement the sort by director menu option. For directors with multiple films on the list, order their films by year. Note: There is a newline and a tab between the director's name and the movie title/year. (3 pts)

Ex:

...Choose an option:dAdam Elliot:Mary Max, Alejandro G. Inarritu:Birdman, Ben Affleck:Argo, Christopher Nolan:The Dark Knight, The Prestige, ...

(6) Implement the sort by movie title menu option. Note: There is a newline and a tab between the movie title and the movie director/year. (2 pts)

Ex:

...Choose an option:t12 Years a Slave:Steve McQueen, 2013Argo:Ben Affleck, 2012Birdman:Alejandro G. Inarritu, 2014Build a dictionary that contains the movie collection below. Hint: Combine movie title and director into a list. DirectorSteven SpielbergChristopher NolanMartin ScorseseSean PennChristopher NolanAdam ElliotTom HooperMichel HazanaviciusTate TaylorBen AffleckSteve McQueenAlejandro G. InarrituTom McCarthySteven Spielberg() the a single the movie title(s) director(s) that year. N/A the invalid. ( pts) Ex:Enter a :The Artist, Michel HazanaviciusThe , Tate Taylor() prompting the a displaying the title(s) directors(s) that , display a menu. The menu enables a display the movies sorted , director, movie title. represented a single character.The program outputs the menu, outputs the menu a chooses an option. an invalid entered, continue a valid choice. The program ends the chooses the Quit. Hint: Implement Quit implementing other options. this step, the other options nothing. ( pt) Ex:Enter a :The Artist, Michel HazanaviciusThe , Tate TaylorMENU :y - d - Directort - Movie titleq - Quit an :() Implement the menu option. Note: There a a tab the the movie title/director. ( pts) Ex:... an :y:Munich, Steven Spielberg:The Prestige, Christopher NolanThe Departed, Martin Scorsese: the Wild, Sean Penn:The Dark Knight, Christopher Nolan...() Implement the director menu option. directors multiple films the , their films year. Note: There a a tab the director's name and the movie title/year. (3 pts) Ex:...Choose an option:dAdam Elliot:Mary and Max, 2009Alejandro G. Inarritu:Birdman, 2014Ben Affleck:Argo, 2012Christopher Nolan:The Dark Knight, 2008The Prestige, 2006...(6) Implement the sort by movie title menu option. Note: There is a newline and a tab between the movie title and the movie director/year. (2 pts) Ex:...Choose an option:t12 Years a Slave:Steve McQueen, 2013Argo:Ben Affleck, 2012Birdman:Alejandro G. Inarritu, 2014Into the Wild:Sean Penn, 2007Into the Wild:Sean Penn, 2007 pts) How do you first Prompt the user for a single year and output the movie title(s) and director(s) from that year. Output N/A if the year is invalid. I am having a hardtime trying to understand this. Can you explain and break dumb it done. Here is my code# Build a dictionary containing the specified movie collectiondict ={           'MunichSteven SpielbergThe PrestigeChristopher NolanThe Departed the Wild'],           ' the WildSean PennThe Dark KnightChristopher NolanMary Adam Elliot'],       "The King's Speech":[2010,'Tom Hooper'],          'The Artist':[2011,'Michel Hazanavicius'],                'The Help':[2011,'Tate Taylor'],               'Argo':[2012,'Ben Affleck'],  '12 Years a Slave':[2013,'Steve McQueen'],                 'Birdman':[2014,'Alejandro G. Inarritu'],'Spotlight':[2015,'Tom McCarthy'],          'The BFG':[2016,'Steven Spielberg']}                 userinput = int(input('Enter a year between 2005 and 2016:n'))prompt = Trueif (prompt > 2005) or (prompt <2016):    print ('N/A')else:    dict.listThank you for help and time.
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question