from typing import Iterable from .money_add import add_money from .money_amount import Money, money def sum_money(amounts: Iterable[Money], currency: str) -> Money: total = money(0, currency) for amount in amounts: total = add_money(total, amount) return total