Question: in python, thanks Write a function named initialLetterCountthat takes one parameter, wordList- a list of words. Create and return a dictionary in which each initial
in python, thanks

Write a function named initialLetterCountthat takes one parameter, wordList- a list of words. Create and return a dictionary in which each initial letter of a word in wordListis a key and the corresponding value is the number of words in wordListthat 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 = ['T', 'say', 'what', T', 'mean', 'and', 'T', 'mean', 'what', 'T', 'say'] print(initialLetterCount(horton)) {'X': 4, 's': 2, 'w': 2, 'm': 2, 'a': 1}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
