# Data structure ## List contacts = [ "Philip", "Bob", "Joe", "Mary" , "Sally"] lenContacts = len(contacts) contactID = 0 print("Contact ID | Contact Name") for contact in contacts: print(str(contactID) + " | " + contact) contactID += 1 # Ask the user what element to update # Lists are changeable updateContact = input("Enter a contact ID to update: ") #string contacts[int(updateContact)] = input("Enter an updated name for this contact: ") contactID = 0 print("Contact ID | Contact Name") for contact in contacts: print(str(contactID) + " | " + contact) contactID += 1 # Add elements to a list newContact = input("Enter a NEW contact: ") contacts.append(newContact) # list the contacts again contactID = 0 print("Contact ID | Contact Name") for contact in contacts: print(str(contactID) + " | " + contact) contactID += 1