News for hackers. Stuff that matters.
Re:LINQ Ruined My Favorite Interview Question by abecedarius on Thursday July 11, 2013 @01:55PM (#6027751)
Nice. Just a little fixing and polishing:

    def top_ten(s):
        words = s.split()
        return sorted(set(words), key=words.count, reverse=True)[:10]
(to get the most common words instead of the least).

There are no comments on this comment yet.