The size of a list

Alex new_name at mit.edu
Thu Jul 12 10:27:58 EDT 2001


I'm not sure what you mean by null entries, but if you mean entries that
evaluate to false, you could do len(filter(None, list_)).

Alex.



More information about the Python-list mailing list