Consider a file storing each professor's name and the names of students in that professor's class. For example:
Charlie:Abigail,Annie,Avery,Gabe,Naudia,Radwan
Lisa:Bowen,Celia,Chelsea,Chris,Nick
Jeff:Carolyn,Davis,Paul,Reed,Vincent
Each line is formatted as the name of the professor, a colon, and then the
students in that professor's class (with the students' names separated by
commas).
- Write a function getClassLists which, given a file name as a
string argument, returns a dictionary where each key in the dictionary
is a professor's name and the value for each key is the list of students
in that professor's class (as a list of strings).
- Write a function getProfsForStudent that, given the
dictionary from the problem above and a student's name as arguments,
returns a list of professor names who have that student in their
class.