Q. What will be the output of the following Python code?
Code:
def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
β
Correct Answer: (D)
[3,4,2]
def f1(a,b=[]): b.append(a) return b print(f1(2,[3,4]))
You must be Logged in to update hint/solution