Use the any() function. This returns True if any list within the list is not empty.
alist = [[],[]]
if not any(alist):
print("Empty list!")
>> Empty list!
see: https://www.programiz.com/python-programming/methods/built-in/any
Use the any() function. This returns True if any list within the list is not empty.
alist = [[],[]]
if not any(alist):
print("Empty list!")
>> Empty list!
see: https://www.programiz.com/python-programming/methods/built-in/any