Counting the number of elements in a list - help.

Sean 'Shaleh' Perry shalehperry at attbi.com
Tue Apr 16 16:00:04 EDT 2002


> 
> anyone know of a "list size" function?  It has to be out there..hehe, i'm
> just really green at python.  If I knew #2, I could build the function
> myself, but #1 is preferable.
> 

len() returns the size of any python container -- string, dictionary, list,
tuple.





More information about the Python-list mailing list