On Mar 25, 7:38 am, srinivasan srinivas <sri_anna...@yahoo.co.in> wrote: > For ex: to check list 'A' is empty or not.. > if A == []: > if A.count == 0: > if len(A) == 0: > if not A:
PEP 8 recommends the latter. Raymond -- http://mail.python.org/mailman/listinfo/python-list