def make_summer(): data = [] def summer(val): data.append(val) _sum = sum(data) return _sum return summer