From 9ceaaa7ebbd6a839ccca6f251ba9abbc5940e8d9 Mon Sep 17 00:00:00 2001 From: SAM <73647831+samhackathon@users.noreply.github.com> Date: Tue, 31 Oct 2023 13:15:49 +0500 Subject: [PATCH] Delete Add Code Here/Contact_management-application.py --- .../Contact_management-application.py | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 Add Code Here/Contact_management-application.py diff --git a/Add Code Here/Contact_management-application.py b/Add Code Here/Contact_management-application.py deleted file mode 100644 index 5bb901e3b43..00000000000 --- a/Add Code Here/Contact_management-application.py +++ /dev/null @@ -1,34 +0,0 @@ -contacts = [] - -def add_contact(): - name = input("Enter the contact's name: ") - number = input("Enter the contact's phone number: ") - contact = (name, number) - contacts.append(contact) - print("Contact added successfully.") - -def list_contacts(): - if not contacts: - print("No contacts found.") - else: - print("Your contacts:") - for i, (name, number) in enumerate(contacts, start=1): - print(f"{i}. {name}: {number}") - -while True: - print("\nOptions:") - print("1. Add a contact") - print("2. List contacts") - print("3. Quit") - - choice = input("Enter your choice: ") - - if choice == "1": - add_contact() - elif choice == "2": - list_contacts() - elif choice == "3": - print("Exiting the Contact Management App.") - break - else: - print("Invalid choice. Please try again.") \ No newline at end of file