check length of list python that may be null code example Example: python is empty array if not a: print("List is empty")