MediumApplyPythonpredict_output

What is the output? ```python def f(x=[]): x.append(1) return x print(f()) print(f()) ```

Apply Tests ability to use knowledge in practical scenarios.

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 32+ more Python questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Python topic (Programming Languages).

More Python Questions