Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions