Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started