Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Sherlock Holmes
4. Find characters


Great! Let's do another exercise.


Create a function called character_name_occurence(). It should take a list of words and a list of book characters as its arguments. The function should return a dictionary with names of the characters as keys and the number a given name appears in the book as values. The character names you should look for are already in the variable named character_list.

The characters that aren't present in the words_list (occur in the list zero times) shouldn't be the keys of the returned dictionary. In other words, all values in the returned dictionary should be greater than zero.