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