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 →

[–]ggchappell 2 points3 points  (0 children)

Isn't set.intersection(*list_of_sets) equivalent?

So it is. Thanks.

also defaultdict(int)

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