Category Archives: Python

Counting distinct sets in a multiset in Python

If like me you suck at Python you may want to do convoluted things like count the distinct sets in some multiset. Here's one way you can do it. In this example sets are read into a defaultdict and in this … Continue reading

Posted in Programming, Python | Leave a comment