human
I am working on the file "Closure a dekorator.ipynb".
The first task is:
Na spocitanie priemeru nepotrebujeme cely zoznam. Staci nam suma a pocet.
Tento priklad je ale pokazeny. Kto vie preco? Uz som to naznacil viac krat.
Can you write Python program for it?
 Write me a the Python program you requested?
assistant
#Here is the Python program you requested.

def make_averager():
    count = 0
    total = 0
    def averager(new_value):
        count += 1
        total += new_value
        return total / count
    return averager

avg = make_averager()
avg(10)