fastest way to check if a list is empty python code example
Example: can python tell if a list is empty
>>> if len(a)==0:
print ("list is empty")
else:
print ("list is not empty")
>>> if len(a)==0:
print ("list is empty")
else:
print ("list is not empty")