List problem

Terry Reedy tejarex at yahoo.com
Fri Mar 29 18:00:02 EST 2002


"Peter Hansen" <peter at engcorp.com> wrote in message
news:3CA4E7C6.EDE85B98 at engcorp.com...
> Jon Cosby wrote:

> > lword = len(firstword)

You missed that lword *is* the length of firstword, not firstword
itself, making

> That finds the line matching lword and appends it to words, I think,
> which is another way of saying that every instance of lword in the
> dict.txt file will be appended to the words list.  Strange...

and

> For every character in lword, append an empty list to the rows
> and columns?  If that's what you want, you need range(len(lword))

and

> Same problem as above... use len() with range().

invalid.

I am still looking for what is wrong.

Terry J. Reedy






More information about the Python-list mailing list