def adder():
    total = 0
    count = 0
    while True:
        term = yield
        try:
            term = float(term)
        except (ValueError, TypeError):
            break
        else:
            total += term
            count += 1
    return Result(total, count/total)
dataset/ETHPy150Open fluentpython/example-code/attic/control/adder/yetanother.py/adder/swapped operands of `/`