Question: Write a Python function, which takes as argument a Python list of characters in upper- and lower-cases, char_list, to determine the frequency of each
Write a Python function, which takes as argument a Python list of characters in upper- and lower-cases, char_list, to determine the frequency of each unique uppercase character in the list and returns the counts as a dictionary with each uppercase character as the key and its frequency as the corresponding value. Note that you should not use the built-in count() method in your implementation. def find_frequency(char_list): For example, given that char_list = ['a','A','b',C'c','b','D'], the function should return a dictionary, uppercase_dict = {'A':1,C':1,'D':1). If the given char_list is empty, the function should return an empty dictionary.
Step by Step Solution
3.30 Rating (156 Votes )
There are 3 Steps involved in it
Certainly Heres a Python function that takes a list of characters as input and retur... View full answer
Get step-by-step solutions from verified subject matter experts
