names = set()
emails = set()
print('-=-=- Menu -=-=-\n')
v = print('V. View Contacts')
a = print('A. Add New Contact')
c = print('C. Change Contact')
d = print('D. Delete Contact')
q = print('Q. Quit\n')
choice = str(input('Enter your choice: '))
if choice =='A' or 'a':
print('-=-=- Enter the New Contact Name and Email -=-=-\n')
add_name = str(input('Enter Contact Name: '))
add_email = str(input('Enter Contact Email: '))
names.add(add_name)
emails.add(add_email)
choice = str(input('Enter your choice: '))
elif choice == 'V' or 'v':
print('-=-=-=-=-=-=-=-=-=-=-=-\n')
print('-=-=-=- Name, Email -=-=-=-')
print(names, emails, '\n')
choice = str(input('Enter your choice: '))
elif choice == 'C' or 'c':
print('-=-=-=-=-=-=-=-=-=-=-=-\n')
changed_name = str(input('Enter Contact Name:'))
changed_email = str(input('Enter Contact Email: '))
names.update(changed_name)
emails.update(changed_email)
elif choice == 'D' or 'd':
print('-=-=-=-=-=-=-=-=-=-=-=-\n')
delete_name = str(input('Enter Contact Name You Wish to Delete: '))
delete_email = str(input('Enter the Email of the Contact Name: '))
names.discard(delete_name)
emails.discard(delete_email)
elif choice =='Q' or 'q':
print('Goodbye')
exit()
Even though I'm selecting a different option(like view contacts or change contact), it automatically tries to add a new contact. If you could break down what my mistakes are and how I am able to fix them, it would be very much appreciated.