Friday, July 23, 2010

python: getting the size (length) of a list - just use len() !

>>> print a
[1, 2, 3, 4]

>>> len (a)
4

No comments: