Computers and Technology
Computers and Technology, 10.11.2019 02:31, demij

Write a function named initiallettercount that takes one parameter, wordlist -- a list of words. create and return a dictionary in which each initial letter of a word in wordlist is a key and the corresponding value is the number of words in wordlist that begin with that letter. the keys in the dictionary should be case-sensitive, which means 'a' and 'a' are two different keys. for example, the following is correct output: horton = ['i', 'say', 'what', 'i', 'mean', 'and', 'i', 'mean', 'what', 'i', 'say']print(initiallettercount(hort on)){'i': 4, 's': 2, 'w': 2, 'm': 2, 'a': 1}

answer
Answers: 1

Similar questions

Do you know the correct answer?
Write a function named initiallettercount that takes one parameter, wordlist -- a list of words. cre...

Questions in other subjects:

Konu
History, 04.11.2020 01:00
Konu
English, 04.11.2020 01:00
Konu
Biology, 04.11.2020 01:00