?
What will be the output of the following Python code?
What will be the output of the following Python code?
def f(i, values = []):
values.append(i)
return values
f(1)
f(2)
v = f(3)
print(v)
def f(i, values = []):
values.append(i)
return values
f(1)
f(2)
v = f(3)
print(v)
Join the Discussion
Login to post a comment or share your explanation.
Login