from typing import Iterable


def nested_depth(iterable:Iterable) -> int:
    """
    calculate the nested depth of an iterable

    Args:
        iterable (Iterable): the iterable to calculate the depth of

    Returns:
        int: the depth
    """
    depth_func = lambda L: isinstance(L, (list, tuple)) and max(map(depth_func, L)) + 1
    depth = depth_func(iterable)
    return depth if depth is not False else 0