def is_iterable(obj):
    """
    Test if the given object is iterable

    :param obj: an object
    :return: True if obj is iterable, False otherwise
    """
    try:
        _ = iter(obj)
        return True
    except TypeError:
        return False
