def is_container(obj):
    """
    Checks if the object is a container, that is, an iterable,
    but not a string.

    :param obj: Object to be tested.
    :return: True if object is a container, False otherwise.
    """
    if hasattr(obj, '__iter__') and not isinstance(obj, str):
        return True
    return False