3. find_movies_by_director This function takes a list of tuples (representing movies) and a string (representing a name of a director) and returns a list containing *only* those movie tuples where the movie director is equal to the requested director. Movie tuples are of the shape (title, year, director). You can use this list for testing purposes! my_inovies = [("Blade", 1998, "Stephen Norrington"), ("Underworld", 2003, "Len Wiseman"), ("The Lost Boys", 1987, "Joel Schumacher"), ("The Hunger", 1983, "Tony Scott")] Sample calls should look like this. >>> find movies_by_director (my_movies, "Stephen Norrington") [('Blade', 1998, 'Stephen Norrington')] >>> find movies_by_director (my_movies, "Sofia Coppola") []

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter17: Linked Lists
Section: Chapter Questions
Problem 18PE
icon
Related questions
Question
- Zoc X
Launch Meeting - Zoc X Is Everyone Really Eq X Reading Response 6 - X Ch7: Oppression & St X
S Thank you for downlc X
5018/assignments/294537
3. find_movies_by_director
This function takes a list of tuples (representing movies) and a string (representing a name of a director) and returns a
list containing *only* those movie tuples where the movie director is equal to the requested director.
Movie tuples are of the shape (title, year, director).
You can use this list for testing purposes!
[("Blade", 1998, "Stephen Norrington"),
("Underworld", 2003, "Len Wiseman"),
("The Lost Boys", 1987, "Joel Schumacher"),
("The Hunger", 1983, "Tony Scott")]
%3D
my_imovies
Sample calls should look like this.
>>> find_movies_by_director(my_movies, "Stephen Norrington")
[('Blade', 1998, 'Stephen Norrington')]
>>> find_movies_by_director(my_movies, "Sofia Coppola")
[]
Transcribed Image Text:- Zoc X Launch Meeting - Zoc X Is Everyone Really Eq X Reading Response 6 - X Ch7: Oppression & St X S Thank you for downlc X 5018/assignments/294537 3. find_movies_by_director This function takes a list of tuples (representing movies) and a string (representing a name of a director) and returns a list containing *only* those movie tuples where the movie director is equal to the requested director. Movie tuples are of the shape (title, year, director). You can use this list for testing purposes! [("Blade", 1998, "Stephen Norrington"), ("Underworld", 2003, "Len Wiseman"), ("The Lost Boys", 1987, "Joel Schumacher"), ("The Hunger", 1983, "Tony Scott")] %3D my_imovies Sample calls should look like this. >>> find_movies_by_director(my_movies, "Stephen Norrington") [('Blade', 1998, 'Stephen Norrington')] >>> find_movies_by_director(my_movies, "Sofia Coppola") []
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Map
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning