Question: 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

1 Expert Approved Answer
Step: 1 Unlock

here is the python code import json Function to load data from a file def loaddatafilename try with ... View full answer

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 Programming Questions!