dict initialization

mattia gervaz at gmail.com
Tue Dec 22 16:33:46 EST 2009


Is there a function to initialize a dictionary?
Right now I'm using:
d = {x+1:[] for x in range(50)}
Is there any better solution?



More information about the Python-list mailing list