Report abuse


			
def Counter():
    count = 0
    def inc():
        count++
        return count
    return inc

c1 = Counter()
c2 = Counter()

c1() # 1
c1() # 2
c1() # 3

c2() # 1
c2() # 2

c1() # 4