[Tutor] Number of elements in a list

Alan Gauld alan.gauld at blueyonder.co.uk
Sat Aug 14 00:38:39 CEST 2004

> print myList.length

print len(myList)

Its a function not a method for historical reasons, and because 
it works on all sorts of things not just lists...

Alan G.

More information about the Tutor mailing list