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,

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!