def sum_all(iterable, start):
if hasattr(start, "<STR_LIT>"):<EOL><INDENT>for value in iterable:<EOL><INDENT>start += value<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for value in iterable:<EOL><INDENT>start |= value<EOL><DEDENT><DEDENT>return start<EOL>
Sum up an iterable starting with a start value.

    In contrast to :func:`sum`, this also works on other types like
    :class:`lists <list>` and :class:`sets <set>`.