What will be the output of the following Python code?
def f1(a,b=[]):
b.append(a)
return b
print(f1(2,[3,4]))
def f1(a,b=[]):
b.append(a)
return b
print(f1(2,[3,4]))A. [3,2,4]
B. [2,3,4]
C. Error
D. [3,4,2]
Answer: Option D

Join The Discussion