Python Programming - Lists - Discussion

Discussion Forum : Lists - General Questions (Q.No. 64)
64.
How can you find the frequency of each element in a list in Python?
list.count(element)
list.frequency(element)
dict(Counter(list))
list.freq(element)
Answer: Option
Explanation:
Using Counter and dict() can create a dictionary with element frequencies.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.