#NEWLINE# def averager( ) : #NEWLINE# #INDENT# total = 0.0 #NEWLINE# count = 0 #NEWLINE# average = None #NEWLINE# while True : #NEWLINE# #INDENT# term = ( yield average ) #NEWLINE# total += term #NEWLINE# count += 1 #NEWLINE# average = ( total / average )