#🔒 I'm trying to make an address book in python
13 messages · Page 1 of 1 (latest)
@fierce palm
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
these the requirements btw: Create an application that manages contacts in an addressbook.
Menu structure:
[L] List contacts
[A] Add contact
[R] Remove contact
[M] Merge contacts
[Q] Quit program
Criteria:
Add a contact with first name and last name (only alphabet), multiple (unique) e-mails (containing at least one '@'), multiple (unique) phone numbers.
Also, an ID should be generated which should be 1 higher than the highest current ID.
Remove a contact by ID.
List all contacts sorted by first_name in descending order.
Merge duplicate contacts (when choosing [M] Merge contacts). Contacts with the exact same full name (first and last name combined) should be merged.
The e-mails and phone numbers of the duplicate contacts should be added to the the first duplicate contact (contact with the highest ID).
The other duplicate contcts should be deleted from the addressbook.
Contacts are read from the provided JSON file and should be updated with new or removed contacts.
Input example (add):
A
Firstname: John
Lastname: Doe
Emails: [email protected], [email protected]
Phonenumbers: 0612345678, 010-1234567
Output example ([A] add):
Contact added to addressbook
Output example ([L] list contacts):
Position: 1
First name: John
Last name: Doe
Emails: [email protected], [email protected]
Phone numbers: 0612345678, 010-1234567
Position: 2
First name: Peter
Last name: Parker
Emails: [email protected]
Phone numbers: 0677345678
....
What exactly do you need help with?
It looks like you're not supposed to print the menu, which is odd.
so what could i possibly change ?
Well, I'd just try resubmitting it without the menu being printed.
So just don't execute the code that's printing the menu
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.