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