A simple, class-based Contact Book application built with Python. Store and manage contact information (name & phone number) directly from the terminal.
- Add new contacts
- Store multiple contacts
- Display all saved contacts in a clean format
- Each contact is represented by the
Contactclass. - All contacts are stored inside the
ContactBookclass. - You can add new contacts using
add_contact()and display them withshow_contacts().
from contact_book import Contact, ContactBook
# Create a new contact book
contact_book = ContactBook()
# Add contacts
contact_book.add_contact(Contact("Shree", "123-456-7890"))
contact_book.add_contact(Contact("Ram", "987-654-3210"))
# Show contacts
contact_book.show_contacts()Name: Shree, Phone: 123-456-7890
Name: Ram, Phone: 987-654-3210Made with ❤️ by Mantra Patil
💼 LinkedIn: https://www.linkedin.com/mantrapatil25