31
What will be the output of the following Python code?
def foo(i, x=[]):
x.append(i)
return x
for i in range(3):
print(foo(i)) Answer & Solution
Answer: Option
B
No explanation is given for this question. Let's Discuss on Board