def retrieve_room(course_dict, course, section):
building, room = course_dict[(course, section)]
return building + " " + room
def main():
course_schedule = { ("CSC 110", "section 1") : ("Gittings", "129b"),
("CSC 110", "section 2") : ("Gittings", "129b"),
("CSC 110", "section 3") : ("Gittings", "129b"),
("CSC 120", "section 1") : ("Gittings", "129b"),
("CSC 144", "section 1") : ("Social Sciences", "100"),
("CSC 120", "section 2") : ("Gittings", "129b")}
course = "CSC 110"
section = "section 3"
assert retrieve_room(course_schedule, course, section) == "Gittings 129b"
main()