Computer Science, asked by addiaagarwal8, 1 year ago

write a program to connt the frequency of an element in a given list​

Answers

Answered by anushkian004
3

Answer:

here is you answer. I hope it will help you

Explanation:

Python: Get the frequency of the elements in a list

Sample Solution:-

Python Code:

import collections

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

print("Original List : ",my_list)

ctr = collections.Counter(my_list)

print("Frequency of the elements in the List : ",ctr)

Similar questions