The size of a list

Alex new_name at mit.edu
Thu Jul 12 16:27:58 CEST 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