xodhx4
4/22/2018 - 5:18 AM

check list empty

how to test list is empty

a = list()
      # test list is empty
      if not a:
      	print('list is empty')