Giter Site home page Giter Site logo

contact_book's Introduction

Contact Book

The Python Contact Book Project provides an interactive console text-based application where users can store, retrieve, edit, and delete their contacts. User can store their contact's name, phone number, email, and address.

Project Implementation

The primary data structure was a built-in Python dictionary, which was tasked with managing contact entries. This structure was chosen due to its efficiency in handling these particular operations (O(1) average complexity for add, delete, get operations).

Project Structure

The project consists of the following files and directories.

.
├── README.md
└── main.py

The project structure was designed to be simple and clean.

  • README.md: this document providing project description and documentation
  • main.py: the Python script that defines the ContactBook class which encapsulates the core functionalities of the application. the main script which interacts with the user and uses ContactBook class methods to provide the desired functionality

ContactBook Class

The core logic of the application is implemented in ContactBook class:

  • The add_contact method allows for new entries to be made to the 'book'. Each entry must be unique by name.

  • The edit_contact method permits updates to contact information.

  • The view_contacts method lists all contacts in the address book along with their information.

  • The delete_contact method allows for existing contacts to be removed from the book.

User Interface

The interface is a simple console-based menu that offers users options to add, view, edit, delete contacts or quit the program.

Installation and Usage

To run the program, navigate to the project directory and run the following command:

python main.py

V

contact_book's People

Watchers

Ali Ebrahimi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.