def isSequence(arg):
    """Check if input is iterable."""
    if hasattr(arg, 'strip'):
        return False
    if hasattr(arg, '__getslice__'):
        return True
    if hasattr(arg, '__iter__'):
        return True
    return False
