from typing import Any
from typing import Iterable


def is_iterable(obj: Any) -> bool:
    """check whether `x` is an iterable object but not string"""
    return isinstance(obj, Iterable) and not isinstance(obj, str)