Question: Hello, I'd like some help with this Python program. I feel like I'm making it more complicated than what it has to be and would

Hello, I'd like some help with this Python program. I feel like I'm making it more complicated than what it has to be and would like some verification. Thank you!

Program:

We're going to write a program that manages the email address of our contacts. Your program must contain a class named contact that has 3 attributes (instance variables): last name, first name, and email. Your class should also have a method to return the full name and email address for printing when requested. You may add other methods to the class if you like. Each contact should use a single instance of your contact class. You should use either a list or a dictionary to act as a container of the contact instances. Also, the program should have a menu that allows the user to interact with your collection of contacts: displaying contacts or adding new contacts as long as the user wishes, then saying goodbye when finished. The menu should offer these options.

Program Options.

1.) Display all contacts

2.) Create new contact

3.) Exit

option = input("Enter 1, 2, or 3: ")

For full credit:

- use a python class to represent the contact info and at least one method to print that info.

- collect each new contact instance in a list or dictionary.

- please format printed output so all column data lines up.

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!