Question: CS100 Dictionary Homework Write and test. For each problem, write code that satisfies the problem specification. Test your code by designing at least three inputs

 CS100 Dictionary Homework Write and test. For each problem, write code

CS100 Dictionary Homework Write and test. For each problem, write code that satisfies the problem specification. Test your code by designing at least three inputs for each problem that you believe are likely to reveal any bug and run your code on those inputs. Submit your solution, including the test inputs as a .py file via Moodle. Problem 1. 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 (eg,, a, and A are different letters). For example, the following is correct output horton-['', 'say', 'what','I','mean','and',','mean','what',I,'say'] print(initial LetterCount(horton)

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!