The Contact List Manager is a Python program that allows you to manage your contacts efficiently. You can create, edit, delete, search, and organize your contacts into groups such as friends and family.
- Create Contact: Add new contacts with name and phone number.
- Display Contacts: View all stored contacts.
- Search Contacts: Search for contacts by name.
- Edit Contacts: Edit contact details (name or phone number).
- Delete Contacts: Remove a contact from the list.
- Organize Contacts: Add contacts to groups such as friends or family.
-
Clone the Repository:
git clone https://github.com/Programming-Sai/Contact-List-Manager.git cd Contact-List-Manager
-
Install Requirements: No external libraries are required for this program. It runs on standard Python libraries.
Run the program using Python:
python contact_list_manager.py
name
: (str) The name of the contact.num
: (str) The phone number of the contact.contact
: (list) A list of all contacts.friends_contact
: (list) A list of contacts in the friends group.family_contact
: (list) A list of contacts in the family group.
create_contact()
: Prompts the user to enter a name and phone number to create a new contact.display_contact()
: Displays all contacts.search_contact()
: Searches for a contact by name.edit_contact()
: Edits an existing contact's name or phone number.delete_contact()
: Deletes a contact.add_contact()
: Adds a contact to the friends or family group.replace(list_, item, replacement)
: Replaces an item in a list with a new value.
Here is an example of how to use the Contact List Manager:
-
Start the Program:
python C_Implementation.py
-
Menu Options:
- Select an option by entering the corresponding number.
- Options:
- Search for a contact
- Display all contacts
- Create a new contact
- Edit a contact
- Delete a contact
- Add contact to another group
- Exit
-
Create a New Contact:
- Select option
3
. - Enter the name and phone number when prompted.
- Select option
-
Display Contacts:
- Select option
2
to display all stored contacts.
- Select option
-
Search for a Contact:
- Select option
1
and enter the name of the contact.
- Select option
-
Edit a Contact:
- Select option
4
and follow the prompts to edit a contact.
- Select option
-
Delete a Contact:
- Select option
5
to delete a contact.
- Select option
-
Add Contact to Group:
- Select option
6
to add a contact to the friends or family group.
- Select option
- The phone number must be exactly 10 digits.
- The program prompts the user for confirmation before each major action.
- Use the
menu()
function frequently to keep track of your current location and available actions.
Enjoy managing your contacts with the Contact List Manager!