Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Contact Book (Python)

A simple, class-based Contact Book application built with Python. Store and manage contact information (name & phone number) directly from the terminal.

Features

  • Add new contacts
  • Store multiple contacts
  • Display all saved contacts in a clean format

How It Works

  1. Each contact is represented by the Contact class.
  2. All contacts are stored inside the ContactBook class.
  3. You can add new contacts using add_contact() and display them with show_contacts().

Example Usage

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()

Output:

Name: Shree, Phone: 123-456-7890
Name: Ram, Phone: 987-654-3210

Author

Made with ❤️ by Mantra Patil

💼 LinkedIn: https://www.linkedin.com/mantrapatil25

techmantrapatil@gmail.com

⭐ If you found this project useful, give it a star on GitHub! ⭐