Question: In python You are asked to design a program which creates an agenda through dictionaries. 1. The name and telephone number of the contact must
In python
You are asked to design a program which creates an agenda through dictionaries. 1. The name and telephone number of the contact must be requested. 2. Check if you are on the agenda. 3. If not found, add the contact and phone. 4. Display the "Contact added" message 5. If you are already in the phonebook, display the message "Existing contact" 4. Contacts with the same previous process will continue to wait until a "*" is entered 5. When data is no longer received, the calendar (dictionary display) is displayed with the contacts created.
Entry: Contact name Phone (These entries are repeated until a * is written)
Exit: If the contact is already in the phonebook, display the message "Existing contact". If the contact is not in the phonebook, display the message "Contact added". When finished capturing show agenda.
example:
Hugo 3311224455 Martha 5511879920 *
OUTPUT
Contact added Contact added {'Hugo':'3311224455', 'Martha':'5511879920'} example 3
Elena 2222345678 Elena 2223456788 *
Output
Contact added Existing contact {'Elena':'2222345678'} example 3
*
output
{}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
