5
What is the output of the following code?
def f(x, lst=[]):
lst.append(x)
return lst
f(1)
print(f(2))Hard
What is the output of the following code?
def f(x, lst=[]):
lst.append(x)
return lst
f(1)
print(f(2))Log in to join the discussion.