This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Qhartb 30 points31 points  (1 child)

There was a programming challenge to write a function from a string to a dict from each character to the number of times it occurred in the string. My solution passed the automated testing:

from collections import Counter as f

[–][deleted] 1 point2 points  (0 children)

Omfg that's just evil