I'm using defaultdict(set) to store a dictionary d = {value : set_items} where value = integer and set_items = set() of characters and it works perfectly.
I would like to also store the length of the set ie. l = len(set_items) with the dictionary but don't how to do it using a defaultdict(). Any ideas? Dinesh
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor