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

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

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a Python function that takes a list of characters as input and retur... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!