Question: ## Program Instructions 1 . Write a Python program that performs as a Tuffy Titan Contact List which contains a list of contacts that can

## Program Instructions
1. Write a Python program that performs as a Tuffy Titan Contact List which contains a list of contacts that can be modified or deleted.
1. Create a `contacts` module to meet the following requirements:
1. Create a file named `contacts.py`.
1. Add a comment at the top of the file which indicates your name, date and the purpose of the file.
2. Note: All contact lists within this module should assume the list is of the form: `[["first name","last name"],["first name","last name"],...]`
3. Define a function named `print_list` to meet the following requirements:
1. Take a contact list as a parameter.
2. Implement a docstring with a simple sentence that describes the function.
3. Print a header for the printout which indicates the list index number, the first name, and the last name column headers.
4. Loop through the contact list and print each contact on a separate line displaying: the list index number, the contact first name, and the contact last name. Assuming `i` is the index value and `contacts` is the name of the list, the following will format the output: `print(f'{str(i):8}{contacts[i][0]:22}{contacts[i][1]:22}')`

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 Programming Questions!