Who is the director?

Report a typo

You have a list of tuples with the movies and their directors. Using the bisect package, find and print the director's name.

Sample Input 1:

Forrest Gump

Sample Output 1:

Robert Zemeckis
Write 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')]
___

Create a free account to access the full topic