You are viewing a single comment's thread. Return to all comments →
from collections import Counter s = Counter(sorted(input(''))).most_common(3) for x in s: print(f'{x[0]} {x[1]}')
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 →
from collections import Counter s = Counter(sorted(input(''))).most_common(3) for x in s: print(f'{x[0]} {x[1]}')