Coders Packet

PhoneBook using Python

By SEETHAMRAJU VENKATA SAI SATHVIK

A very time-efficient Phonebook Python Source Code that provides features like adding a contact, deleting a contact, displaying the phonebook, etc

Phonebook

This project is a simple phonebook management system implemented in Python. It allows users to add, search, edit, and delete contacts in an organized manner. The phonebook is implemented using binary search trees for efficient searching and management of contacts.

Prerequisites

- Python 3.x

- Required module: prettytable

pip install prettytable

Features

1. Add Contact: Add a new contact with a name and phone number.

2. Search Contact: Search for a contact by name or phone number.

3. Display Phonebook: View the entire phonebook with contacts sorted alphabetically.

4. Inorder Check: Check the order of nodes in the binary search tree (for debugging purposes).

5. Edit Contact: Modify the name or phone number of an existing contact.

6. Delete Contact: Delete a contact from the phonebook.

7. Exit: Save the phonebook data and exit the program.

Usage

1. Run the program by executing the main Python file.

2. Choose the desired operation from the menu by entering the corresponding option number.

3. Follow the prompts and enter the required information to perform the selected operation.

4. The phonebook data is automatically saved to the "sathvikdata.txt" file when exiting the program.

File Structure

- `sathvikdata.txt`: Stores the contact data in a serialized format.

- `prettytable.py`: Dependency module for displaying the phonebook in a formatted table.

- `main.py`: Main Python file containing the phonebook implementation.

Contact

Developer : SVS SATHVIK
Email: [email protected]

Sample Output

Displaying the phonebook

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by SEETHAMRAJU VENKATA SAI SATHVIK (sathviksvs)

Download packets of source code on Coders Packet