create words of various lengths

Robert Kern rkern at ucsd.edu
Fri May 13 12:53:16 EDT 2005


superprad at gmail.com wrote:
> "X-No-Archive: yes"
> 
> what I am looking for is
> 
> 1. To create a list of different words of various lengths(1-15) using
> A-Z,a-z,0-9 and punctuations.Basically anything that could be found on
> a text document.
> 
> 2. The words formed need not be meaningful .FOr example 'ajf' or
> 'fcjgdtfhbs' or even 'gfdew!' or '#bang.' would be a valid entry in the
> list.
> 
> 3.So I am looking for a random set of words of sizes 1 to 15.The proble
> might be the time complexity. I inderstand that there would be too many
> permutations.

So why don't you take one step back and tell us what you think you need 
this list *for*? We might be able to come up with feasible alternatives.

-- 
Robert Kern
rkern at ucsd.edu

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter




More information about the Python-list mailing list