(data)
return hasattr(data, "__iter__") or (
            hasattr(data, "__len__") and hasattr(data, "__getitem__")
        )
Validates `data` for use in this container
Validates `data` for use in this container
Validates data for use in this container
def validate(data):
        """
        Validates `data` for use in this container
        """
        return hasattr(data, "__iter__") or (
            hasattr(data, "__len__") and hasattr(data, "__getitem__")
        )
def validate ( data ) : return hasattr ( data , "__iter__" ) or ( hasattr ( data , "__len__" ) and hasattr ( data , "__getitem__" ) )