create words of various lengths

superprad at gmail.com superprad at gmail.com
Fri May 13 13:53:03 EDT 2005


this works

while len(words) < 10000:
        wd = ""
        for i in ["".join(choice(alphabet)) for i in
range(randint(1,15))]:
            wd += i
        words[wd] = None

anyway Thanks for that this is exactly what i need..




More information about the Python-list mailing list