Counting Duplicate Elements:

Given a list, count the occurrences of each element and return a dictionary where the keys are the elements and the values are the counts.
['a', 'b', 'a', 'c', 'b']
Total : 0 Discussion
Login