Question: Dictionary contact _ dict contains three key - value pairs, each representing an authentication code sent to an email address. Read an authentication code from

Dictionary contact_dict contains three key-value pairs, each representing an authentication code sent to an email address. Read an authentication code from input. Then, output the corresponding email address from contact_dict. Finally, delete that pair from contact_dict.
Click here for example
Ex: If the input is 969473, then the output is:
Cam@soups.org
Remaining pairs:
{192243: 'Bob@hamburgers.org', 413193: 'Jen@wings.org'}

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!