I have a python dictionary
d = {
"Random" : [1,2,3], "Stupid" : [1], "Gross" : [1,1,1,1,1], "Ugly" : [2,1,1,1]
}
The above list should be sorted based on the count of the list values.
I tried this : sorted(d, key=d.get, reverse=True)
But I don't seem to get the right result.