Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that keeps names and email addresses in a Dictionary as key-value pairs. The program should let the user look up a

Write a program that keeps names and email addresses in a Dictionary as key-value pairs. The program should

Write a program that keeps names and email addresses in a Dictionary as key-value pairs. The program should let the user look up a person's email address, add a new name and email address, change an existing email address, and delete an existing name and email address. The program should save the contents of the Dictionary to a file when the user exits the program. Each time the program starts, it should retrieve the information from the file and restore the Dictionary.

Step by Step Solution

3.57 Rating (164 Votes )

There are 3 Steps involved in it

Step: 1

here is the python code import json Function to load data from a file def loaddatafilename try with ... 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

C++ Primer Plus

Authors: Stephen Prata

6th Edition

978-0321776402, 0321776402

More Books

Students also viewed these Programming questions

Question

-x/2 x/4 If A = -x/2 and A-1 =6 then x equals

Answered: 1 week ago