updated from atlas

This commit is contained in:
Luciano Ramalho
2015-02-20 14:33:00 -02:00
parent e910ec5458
commit 304d628066
4 changed files with 56 additions and 25 deletions

View File

@@ -19,8 +19,9 @@ from coroutil import coroutine # <4>
@coroutine # <5>
def averager(): # <6>
total = average = 0.0
total = 0.0
count = 0
average = None
while True:
term = yield average
total += term