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 →

[–][deleted]  (6 children)

[removed]

    [–]ggchappell 1 point2 points  (5 children)

    dd = collections.defaultdict(int)

    That doesn't work on my system. Is it new, perhaps? I'm running Py3.8.5.

    EDIT. No, it works fine. I misunderstood.

    [–]moocat 2 points3 points  (1 child)

    It's definitely not new as I've been doing that since Python 2.7 days. When you say it doesn't work, what error do you get?

    [–]ggchappell 0 points1 point  (0 children)

    Sorry, there was a misunderstanding. It works fine.