Order the answer to: Write a function called create_surnames_dictionary(names)…
|Question||Write a function called create_surnames_dictionary(names) which takes a list of strings as a parameter and returns a dictionary with keys which are a single letter and the corresponding values which are lists of full names. The list of full names corresponding to a key contains all the full names from the list where the first letter of the surname is the key value. The corresponding lists of full names should be in sorted alphabetical order. Note: you can assume that the list is not empty and that each full name contains a first name followed by a surname. For example:|
Have a writer answer this question by clicking below. If you have any questions you can contact us via live chat.