1 2 3 4 5 6
def tot(xs: list[int], base: int) -> int: return sum(xs, base) def fsum(xs: list[float]) -> float: return sum(xs, 1.5)