Contact: aviboots(AT)netvision.net.il
39,919 questions
51,852 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 '''