Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python
Please Help me solve this question. It has to be done in Python Language. Please Don't use advanced python and solve it using basic python like functions, lists, tuples, dictionaries, strings, etc.
Question 7 (Your personal address book): Write a program to create your own address book, in which each entry has: Name, address, phone number, and email address. In the program, the address book should be a dictionary the key of the dictionary has to be the name of the person, while the value has to be another dictionary with address, phone, and email as its keys. Initially, you can assume that people in your directory have unique names. Then modify the program to handle multiple persons with same name.(One way to handle this is to keep name as the key, but the value may be a list of dictionaries - one for each person) Your program should provide the following operations: (i) insert a new entry, (ii) delete an entry (iii) find all matching entries given a partial name, (iv) find the entry with a phone number or email, and (v) exit. When the program exits, it writes the current dictionary in a file (addrbook.txt) and when it is started again next time, it reads the existing address book. Suggestion: To create an address book with some entries, write a small script which will call the add function to add a few entries to create a dictionary. Bonus. Write a program to merge address book of your friend with yours. For this, you can store the address book as a json or as a list of dictionary items - if both you and your friend agree to the structure, merging will be easierStep 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