Question: plz use python thanks Write a function named create_surnames_dictionary(names) which takes a list of strings as a parameter and returns a dictionary. The keys consist

 plz use python thanks Write a function named create_surnames_dictionary(names) which takes

plz use python thanks

Write a function named create_surnames_dictionary(names) which takes a list of strings as a parameter and returns a dictionary. The keys consist of single letters and the values are lists of full names where the first letter of the surname is the key. The lists of full names should be in sorted alphabetical order. Note: you can assume that the parameter list is not empty and that each full name contains a first name followed by a space and a surname. For example: Test Result my_dictionary = create_surnames_dictionary(['Dick Smith', 'Michael Hill']) H ['Michael Hill'] for letter in sorted(my_dictionary.keys()): s ['Dick Smith'] print(letter, my_dictionary[letter])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!