You are viewing a single comment's thread. Return to all comments →
That's correct. I have used the same way.
from collections import Counter
x = sorted(input())
c = Counter(x).most_common(3)
[print(k,v) for k,v in c]
Seems like cookies are disabled on this browser, please enable them to open this website
Company Logo
You are viewing a single comment's thread. Return to all comments →
That's correct. I have used the same way.
from collections import Counter
x = sorted(input())
c = Counter(x).most_common(3)
[print(k,v) for k,v in c]