We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Collections
- Company Logo
- Discussions
Company Logo
Company Logo
Sort by
recency
|
1249 Discussions
|
Please Login in order to post a comment
Without modifying the code already given :)
from collections import Counter
if name == 'main': s = sorted(input()) z= Counter(s) z=Counter(s).most_common(3) for x in z: print(*x)