Python Program to Check If a List is Empty (Using len())
my_list = []
if not len(my_list):
print("the list is empty")
Output
the list is empty
my_list = []
if not len(my_list):
print("the list is empty")
Output
the list is empty