Examveda

What will be the output of the following Python code?
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


This Question Belongs to Python Program >> Functions In Python

Join The Discussion

Related Questions on Functions in Python