0

Hi,
How do I find the frequency of each item in a list in Python?

For example if there are five 'apple', two 'banana', and so on in the list, how do I write a program so that it displays the item as well as the number of times it occurs in the list. Thanks

2
Contributors
1
Reply
3
Views
7 Years
Discussion Span
Last Post by woooee
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.