What is the output of the following Python program?
def f(x, items=[]):
items.append(x)
return len(items)
print(f(1), f(2), f(3, []), f(4))
Calls without items share the default list (1, 2, then 3 items). f(3, []) used its own new list.