Counter local - not working
examples/closures/counter_local.py
def counter(): count = 0 count += 1 return count print(counter()) print(counter()) print(counter())
1 1 1
def counter(): count = 0 count += 1 return count print(counter()) print(counter()) print(counter())
1 1 1