Sort by

recency

|

1272 Discussions

|

  • + 0 comments

    That’s an interesting way to design a logo—using the most common letters from the company name! It reminds me of how crucial typography and letter arrangement are in branding. When I was looking for a professional logo, I found Logo Design NJ, and they really understand the art of crafting logos that are both strategic and visually appealing. Whether it’s picking the right fonts, symbols, or colors, a well-designed logo helps a brand stand out just like this unique character-based approach!

  • + 0 comments
    from collections import Counter
    
    if __name__ == '__main__':
        s = input()
        c0 = Counter(sorted(s))
        top3 = c0.most_common(3)
        [print(*x) for x in top3]``
    
  • + 0 comments

    Here is m solution.

    from collections import Counter
    
    
    if __name__ == '__main__':
        s = input()
        counter = Counter(sorted(s))
        for letter in counter.most_common(3):
            print(*letter)
    
  • + 0 comments
    if __name__ == '__main__':
        sorted_items = sorted(Counter(input()).items(), key=lambda x: (-x[1], x[0]))
        [print(*x) for x in sorted_items[0:3]]
        
    
  • + 0 comments

    Here is my solution

    from collections import Counter
    
    for item in sorted(Counter(input()).most_common(), key=lambda x: (-x[1], x[0]))[:3]:
        print(*item)