Home / Projects / Contact Book
Day 9 · Day 9: Automation & Databases

Contact Book

Build a Contact Book application that stores contacts in a SQLite database, supporting adding, viewing, searching, updating, and deleting contacts with persistent storage.

Requirements

1. Use the sqlite3 module to create a contacts.db database with a contacts table (id, name, phone, email).
2. Implement add_contact() to insert a new contact using parameterized queries.
3. Implement view_contacts() to display all contacts sorted by name.
4. Implement search_contact() to find contacts by name (partial match using LIKE).
5. Implement update_contact() to change a contact's phone or email.
6. Implement delete_contact() to remove a contact by id.
7. Build a menu-driven loop tying all operations together.
8. Ensure the database and table are created automatically if they don't exist.
50 XP on completion Back to Day 9

Your Code

Output
Click "Run" to execute your code...

Log in to mark this project complete and earn XP.