my_list = [] if len(my_list) != 0: print('my_list is not empty!') elif len(my_list) == 0: print('my_list is empty!')