You have a list of tuples with the movies and their directors. Using the bisect package, find and print the director's name.
Information Retrieval and Question Answering
Who is the director?
Report a typo
Sample Input 1:
Forrest GumpSample Output 1:
Robert ZemeckisWrite a program in Python 3
from bisect import bisect
movies = [('Django Unchained', 'Quentin Tarantino'),
('Forrest Gump', 'Robert Zemeckis'),
('Home Alone', 'Chris Columbus'),
('Schindler\'s List', 'Steven Spielberg'),
('Shutter Island', 'Martin Scorsese'),
('Star Wars', 'George Lukas'),
('The Green Mile', 'Frank Darabont')]
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.