Problem with a dictionary program....

Russell Blau russblau at hotmail.com
Tue Sep 28 12:45:23 EDT 2004


"Ling Lee" <janimal at mail.trillegaarden.dk> wrote in message
news:415976d1$0$23090$ba624c82 at nntp05.dk.telia.net...
> I have read the tutorial, but still its a bit hard for me to see how I
make
> the loop and how I count the lengt of the number. When I use the
len(input)
> I get the reply:  Error len() of unsized object. Think that is why len()
> only works on dictionaries and lists, not strings.

>>> len("I am a string.")
14

Maybe it was a spelling error -- did you type len(input) instead of
len(indput) perhaps?

-- 
I don't actually read my hotmail account, but you can replace hotmail with
excite if you really want to reach me.





More information about the Python-list mailing list