check length of empty values in list code example Example: how to tell if a list is empty in python if not a: print("List is empty")