l = [] if len(l) == 0: print("the list is empty") l = [] if l: print("the list is not empty") else: print("the list is empty")