def max_or_zero(iterable):
    """
    Return max of an iterable or zero if not iterable.

    >>> max_or_zero([])
    0
    >>> max_or_zero([1,2,3])
    3
    """
    if iterable:
        return max(iterable)
    return 0