What way is the best to check an empty list?

srinivasan srinivas sri_annauni at yahoo.co.in
Wed Mar 25 10:26:22 EDT 2009


For ex: to check list 'A' is empty or not..
if A == []:
if A.count == 0:
if len(A) == 0:
if not A:


      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/



More information about the Python-list mailing list