Nov-03-2020, 08:32 AM
collections.defaultdict can help.
from collections import defaultdict setdict = defaultdict(set) setdict[42].add(1337) setdict[0].add("Foo") print(setdict)
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!