how to check is list empty python code example Example: python is empty array if not a: print("List is empty")