def is_scalar_or_string(val):
 return (is_string_like(val) or (not iterable(val)))

def is_scalar_or_string ( val ) : return ( is_string_like ( val ) or ( not iterable ( val ) ) )
return whether the given object is a scalar or string like .