It should return True if the first contact belongs before the second one in a sorted contact list. Write a predicate function that takes two contacts as inputs.This set of exercises requires that you've already done the Take It Further exercises on page 2. If exactly one contact matches, instead of displaying the one-item list of names, just ask the user to confirm or cancel deleting it.(The item numbers are automatically displayed in the name list, so you don't have to worry about that part.) Give the user a way to cancel the request instead of choosing a name. Modify "Delete Contact" so that, if more than one contact matches the user's name input, it displays a list of the matching names and asks the user to select one by number.Write a helper block delete contact that takes a contact as input and removes that contact from contact list.Modify your "Delete Contact" script so that it lets the user choose which contact they want to delete when If the user confirms that they want to delete these contacts, replace the contact list with a list of all contacts whose name does not match the input name. Give the user the list of matching contacts and ask them for confirmation to delete (so the user won't accidentally delete their contact).Then, use your find contacts block to find all the matching contacts.Make the script ask the user to "Enter the name of the contact(s) you wish to delete.".Move the "Delete Contact" button onto the stage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |