def createCounter(): j = 0 def counter(): nonlocal j j += 1 return j return counter
Sign in to make a reply
Jack