LogiQuest
Back to Functions
18

What is the output of the following code?

def f(items=[]):
    items.append(1)
    return len(items)
f(); f()
print(f())
Hard

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.