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

See this link. The same question (summing items) was asked 2 days ago.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.