Question
Code in Python Write a Python program for the phone book. The program must : 1) Store names and contact information in the dictionary as
Code in Python
Write a Python program for the phone book.
The program must:
1) Store names and contact information in the dictionary as key-value pairs.
2) Contact details must contain an object with attributes for address, email, and phone number
3)When running the program should unpickle the file to retrieve the dictionary
4) The console should display a menu with the following use cases:
1)Find a Contact by name and show information about it
2)Add a new contact and information about it
3)Edit an existing email
4)Change an existing phone number
5)Delete a contact and all information about it
6)Exit the phone book (in this case, first you must pickle the dictionary and save it to a file, and after finish executing the program).
5)When writing a program, replace setters and getters with properties
6)Make a check of the information entered by the user for correctness(that is, check that it has an ending with @ , the name consists only of letters , the phone number can only have numbers )
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started