I need to find the frequency of elements in an unordered list
a = [1,1,1,1,2,2,2,2,3,3,4,5,5]
output->
b =
num=[3,2,3,5,5,3,7,6,4,6,7,2] print ('\nelements are:\t',num) count_dict={} for elements in num: count_dict[elements]=num.count(elements) print ('\nfrequency:\t',count_dict)