Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

3-31. Was the senders purpose realistic?

Answered: 1 week ago

Question

patients as improved. Meanwhile, the spouses rated

Answered: 1 week ago