Like the title says I need to write a function that will sort a list by frequency of letters. Normally I would supply my code with what I have so far but I have no idea where to get started. I’m sure its something simple but I just don’t know what to do. I need them sorted in decreasing order, any help is appreciated, thanks.
Share
in python 2.7 or higher you can use a counter:
http://docs.python.org/dev/library/collections.html#collections.Counter
as per Sorted Word frequency count using python
if you need letters instead of words you can go like this: