Skip to content

Counting Frequency

Write a program that takes a list of integers and counts the frequency of each of them

Get a container/collection of integers in the list and their frequency

Example:

myList = [10, 10, 10, 10, 20, 20, 20, 20, 40, 40, 50, 50, 30]

10:4, 20:4, 40:2, 50:2, 30:1

Try doing it at first with pythonic modules and then without