Question from the Python test

What is the output of the following code?

Medium

What is the output of the following code?

 def func(x, y=[]):
    y.append(x)
    return y

print(func(1))
print(func(2))
Author: Amani BEN HADJ BRAIEKStatus: PublishedQuestion passed 16 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!