# Accumulator
# The count is the accumulator
count = 0
for item in list:
print item
count +=1
def foo(n):
s = n
def bar(i):
nonlocal s
s += i
return s
return bar