Skip to content

About

Simple Python command-line contact directory with add, search, update, and delete operations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Python Contact Directory

A simple command-line contact directory application developed with Python.

The program allows users to add, search, update, delete, and display contacts through an interactive menu.

Features

  • Add a new contact
  • Search for a contact by name
  • Update an existing phone number
  • Delete a contact
  • Display all contacts in alphabetical order
  • Prevent duplicate contacts
  • Validate empty names and phone numbers
  • Handle invalid menu options

Technologies Used

  • Python 3
  • Jupyter Notebook
  • Visual Studio Code

Project Structure

python-contact-directory/
├── contact_directory.ipynb
├── .gitignore
└── README.md

How It Works

Contacts are stored in a Python dictionary:

annuaire = {
    "Contact Name": "Phone Number"
}

Each contact name is used as a unique key, while the corresponding phone number is stored as its value.

Running the Project

  1. Clone or download the repository.
  2. Open contact_directory.ipynb with Jupyter Notebook or Visual Studio Code.
  3. Select a Python kernel.
  4. Run the notebook cells in order.
  5. Use the interactive menu displayed in the final cell.

Available Options

1. Add a contact
2. Search for a contact
3. Update a phone number
4. Delete a contact
5. Display all contacts
6. Quit

Possible Future Improvements

  • Save contacts in a file or database
  • Add email addresses and contact categories
  • Add phone-number format validation
  • Import and export contacts
  • Add a graphical user interface
  • Add unit tests
  • Create a web version of the application

Author

Ayoub Bernannou

Master's degree in Software Engineering and Intelligent Systems
Full-Stack Java and Angular Developer

About

Simple Python command-line contact directory with add, search, update, and delete operations.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages