Question: Problem 2. Make a Dictionary (5 points) Write another function make_dictionary(keys, values) that returns a dictionary that has keys from a frozenset of numbers called
Problem 2. Make a Dictionary (5 points) Write another function make_dictionary(keys, values) that returns a dictionary that has keys from a frozenset of numbers called ids and values from a list of students' names called students. Your function should work with the following code: if _name students =[ malice" "' "bob", "carol"] ids = frozenset([123, 124, 125]) records = make_dictionary(ids, students) assert records ={123: 'alice', 124:'bob', 125: 'carol' } Save the main code and your function in a file called ids.py
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
