Better way to do this dict comprehesion

Chris Angelico rosuav at
Tue Mar 7 21:57:43 EST 2017

On Wed, Mar 8, 2017 at 1:55 PM, MRAB <python at> wrote:
> Using Counter seems like a simpler way to me. I wouldn't bother about other
> ways unless that way wasn't "good enough" for some reason.

Maybe. But without being sure what the goal is, it's hard to say.


More information about the Python-list mailing list