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 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
here is the python code import json Function to load data from a file def loaddatafilename try with ... View full answer
Get step-by-step solutions from verified subject matter experts
