QuestionQ182

VerifiedFunctions and Exceptions

ABC Company needs a method to count particular letters in its publications so it can ensure a good balance. There have apparently been complaints about overusing the letter e. Create a function that meets these requirements.

Question Image

What should replace ??? and ????

Explanation

The function must iterate through every word in word_list. For each word, letter in word evaluates to true when the requested character occurs in that word, so the count is incremented once for each matching word.

Community Discussion

No comments yet. Be the first to start the discussion!