What will be the output of the following Python code?
def foo(): total += 1 return total total = 0 print(foo())
def foo(x): x = ['def', 'abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
def foo(i, x=[]): x.append(i) return x for i in range(3): print(foo(i))
def foo(k): k = [1] q = [0] foo(q) print(q)