• + 0 comments

    new to Python or programming in general, what's the point of that empty class? since its just a pass. compare to my solution, sorted returns a ordered list then pass it to join turn it back to a orded string, can you please explain what are the advantages of using a empty class?

    [print(*i) for i in Counter(''.join(sorted(input()))).most_common(3)]

    also what is the point of writing this kinda "fake" one liner? id say adding few extra lines for varables and clarification won't hurt