check if index of array is null python code example Example: python is empty array if not a: print("List is empty")