A function makes and returns an inner function, which keeps a list from the outer one.
def tally():
seen = []
def add(x):
seen.append(x)
return len(seen)
return add
a = tally()
b = tally()
a("p")
a("q")
print(a("r"), b("s"), a.__name__)
What does the program print?