Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumPythonmutable default trapSingle-choice MCQ756 views

What is the output of the following code?

def func(a, b=[]): b.append(a) return b print(func(1)) print(func(2))