Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- title,director(s)
- Schindler's List,Steven Spielberg
- "O Brother, Where Art Thou?","Joel Coen, Ethan Coen"
- 2001: A Space Odyssey,Stanley Kubrick
- "Sherlock, Jr.","Buster Keaton, Roscoe Arbuckle"
- Winning title: O Brother, Where Art Thou?
- Congratulations: Joel Coen, Ethan Coen
- import csv
- userInput = input('Winning title: ')
- with open('nominees.csv', 'r', newline='') as file:
- nominees = csv.DictReader(file)
- for line in nominees:
- print(line[userInput])
- break
Add Comment
Please, Sign In to add comment