Python Program to Check If a List is Empty (Using len())

bookmark

my_list = []
if not len(my_list):
    print("the list is empty")

 

Output

the list is empty