how to test if a list is empty 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")