def is_iterable(var):
    """ check if the variable is iterable

    :param var:
    :return bool:

    >>> is_iterable('abc')
    False
    >>> is_iterable(123.)
    False
    >>> is_iterable((1, ))
    True
    >>> is_iterable(range(2))
    True
    """
    res = (hasattr(var, '__iter__') and not isinstance(var, str))
    return res