LogiQuest
Back to Functions
5

What is the output of the following code?

def f(x, lst=[]):
    lst.append(x)
    return lst
f(1)
print(f(2))
Hard

Discussion (0)

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

Log in to join the discussion.