Question: Create a program that a user can use to manage the primary email address and phone number for a contact in Python . Specifications: -

Create a program that a user can use to manage the primary email address and phone number for a contact in Python.

Specifications:

- For the view and del commands, display an error message if the user enters an invalid contact number.

- The view command should display all contact information as shown above.

- Use the contacts.csv file to store the data for the program.

- When you start the program, it should read the contacts from the CSV file.

- When you add or delete a contact, the change should be saved to the CSV file immediately. That way, no changes are lost, even if the program crashes later.

Heres is how it should look:

Contact Manager

COMMAND MENU

list - Display all contacts

view - View a contact

add - Add a contact

del - Delete a contact

exit - Exit program

Command: add

Name: Alice Carroll

Email: alice@wonderland.com

Phone: 352-555-9876

Alice Carroll was added.

Command: list

1. Guido van Rossum

2. Eric Idle

3. Lizard Duck

4. Morris Feline

5. Alice Carroll

Command: view

Number: 1

Name: Guido van Rossum

Email: guido@python.org

Phone: +31 0474 33 88 26

Command: exit

Bye!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!