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