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.
- 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
- Python 3
- Jupyter Notebook
- Visual Studio Code
python-contact-directory/
├── contact_directory.ipynb
├── .gitignore
└── README.md
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.
- Clone or download the repository.
- Open
contact_directory.ipynbwith Jupyter Notebook or Visual Studio Code. - Select a Python kernel.
- Run the notebook cells in order.
- Use the interactive menu displayed in the final cell.
1. Add a contact
2. Search for a contact
3. Update a phone number
4. Delete a contact
5. Display all contacts
6. Quit
- 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
Ayoub Bernannou
Master's degree in Software Engineering and Intelligent Systems
Full-Stack Java and Angular Developer