Question: language = python The function make_count_dictionary takes a list L and returns a dictionary D where: The keys of D are the unique elements of

language = python
The function make_count_dictionary takes a list L and returns a dictionary D where: The keys of D are the unique elements of L (i.e. each element of L appears only once). The value D[i] is the number of times that i appears in list L. Make sure your function has a descriptive docstring and is sufficiently commented. Your code should work for lists of strings, lists of integers, and lists containing both strings and integers. For example: - # input L = ["a", "a", "b", "c"] # output {"a" : 2, "b" : 1, "C" : 1}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
