Init a dictionary with a empty lists
Lisa Fritz Barry Griffin
lisaochbarry at gmail.com
Sat Feb 5 08:08:12 EST 2011
Hi there,
How can I do this in a one liner:
maxCountPerPhraseWordLength = {}
for i in range(1,MAX_PHRASES_LENGTH+1):
maxCountPerPhraseWordLength[i] = 0
Thanks!
More information about the Python-list
mailing list