18
What is the output of the following code?
def f(items=[]):
items.append(1)
return len(items)
f(); f()
print(f())Hard
What is the output of the following code?
def f(items=[]):
items.append(1)
return len(items)
f(); f()
print(f())Log in to join the discussion.