You are viewing a single comment's thread. Return to all comments →
Without modifying the code already given :)
from collections import Counter if __name__ == '__main__': s = input() c = Counter(s) [print(letter, rep) for letter, rep in Counter(sorted(c.elements())).most_common(3)]
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 →
Without modifying the code already given :)