checking if the list in non empety 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")