Contact: aviboots(AT)netvision.net.il
43,693 questions
57,001 answers
573 users
a_list = [] if not a_list: print("List is empty") else: print("List is not empty") ''' run: List is empty '''
a_list = [] if len(a_list) == 0: print("List is empty") else: print("List is not empty") ''' run: List is empty '''