A simple command-line phone book application built in Python using Object-Oriented Programming (OOP) principles. It supports basic CRUD operations: Create, Read, Update, and Delete contacts.
- π Create new contacts with full information (name, phone, email, address, category)
- π Search for contacts by first name
- βοΈ Update contact details (including nested fields like address or email)
- ποΈ Delete contacts from the list
- π Display all saved contacts
- β Built-in validation for phone numbers and emails
- πΎ Temporary in-memory data storage (no database or file persistence yet)
Address
β Stores contact's city, street, alley, and zipcodeCategory
β Represents a contact category (family, friend, colleague, others)Contact_Info
β Manages phone number and email with validationPerson
β Represents each contact with full detailsPhone_Book
β Core class managing the list of contacts and all operations
- Make sure Python 3 is installed.
- Save the code in a file, for example:
phonebook.py
- Run the app using your terminal or command prompt:
python phonebook.py