I have a function factory(takes n as variable initialized to zero) with two inner functions current(returns the value of n) and counter(which returns the value n+1).
def factory(n=0):
def counter():
return n+1
return counter
def current():
return n
return current
f_current,f_counter=factory(int(input()))
I'm getting TypeError: cannot unpack non-iterable function object