Discuss / Python / mark

def createCounter():

    L = [0]

    def counter():

        L[0] += 1

        return L[0]

    return counter


  • 1

Reply