What will be the output of the following Python program?
def foo(x): x[0] = ['def'] x[1] = ['abc'] return id(x) q = ['abc', 'def'] print(id(q) == foo(q))
a) Error b) None c) False d) True
Answer: d Explanation: The same object is modified in the function.