Order the answer to: Write a function called create_surnames_dictionary(names) which takes a list of strings as a…